123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <!DOCTYPE html>
- <html lang="ar">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body class="rtl">
- [page:Object3D] → [page:Light] →
- <h1>[name]</h1>
- <p class="desc">
- ينبعث RectAreaLight بالضوء بشكل موحد عبر وجه سطح مستطيل. يمكن استخدام هذا النوع من الضوء لمحاكاة مصادر الضوء مثل النوافذ المشرقة أو الإضاءة المخططة.<br /><br />
-
- ملاحظات هامة:
- </p>
- <ul>
- <li>لا يوجد دعم للظلال.</li>
- <li>
- يتم دعم [page:MeshStandardMaterial MeshStandardMaterial] و
- [page:MeshPhysicalMaterial MeshPhysicalMaterial] فقط.
- </li>
- <li>
- يجب عليك تضمين
- [link:https://threejs.org/examples/jsm/lights/RectAreaLightUniformsLib.js RectAreaLightUniformsLib] في مشهدك واستدعاء `init()`.
- </li>
- </ul>
-
- <h2>مثال للكود</h2>
-
- <code>
- const width = 10;
- const height = 10;
- const intensity = 1;
- const rectLight = new THREE.RectAreaLight( 0xffffff, intensity, width, height );
- rectLight.position.set( 5, 5, 0 );
- rectLight.lookAt( 0, 0, 0 );
- scene.add( rectLight )
-
- const rectLightHelper = new RectAreaLightHelper( rectLight );
- rectLight.add( rectLightHelper );
- </code>
-
- <h2>أمثلة (Examples)</h2>
-
- <p>[example:webgl_lights_rectarealight WebGL / rectarealight ]</p>
-
- <h2>المنشئ (Constructor)</h2>
-
- <h3>
- [name]( [param:Integer color], [param:Float intensity], [param:Float width], [param:Float height] )
- </h3>
- <p>
- [page:Integer color] - (اختياري) لون سداسي عشري للضوء. الافتراضي
- هو 0xffffff (أبيض).<br />
- [page:Float intensity] - (اختياري) شدة الضوء ، أو سطوعه.
- الافتراضي هو 1.<br />
- [page:Float width] - (اختياري) عرض الضوء. الافتراضي هو 10.<br />
- [page:Float height] - (اختياري) ارتفاع الضوء. الافتراضي هو 10.<br /><br />
-
- إنشاء جديد [name].
- </p>
- <h2>الخصائص (Properties)</h2>
- <p>انظر إلى قائمة [page:Light Light] للخصائص المشتركة.</p>
-
- <h3>[property:Float height]</h3>
- <p>ارتفاع الضوء.</p>
-
- <h3>[property:Float intensity]</h3>
- <p>
- شدة الضوء. القيمة الافتراضية هي `1`.<br />
- الشدة هي الإضاءة (السطوع) للضوء المقاسة بالنيتات
- (cd/m^2).<br /><br />
-
- تغيير الشدة سيغير أيضًا قوة الضوء.
- </p>
-
- <h3>[property:Boolean isRectAreaLight]</h3>
- <p>علامة للقراءة فقط للتحقق مما إذا كان كائنًا معينًا من نوع [name].</p>
-
- <h3>[property:Float power]</h3>
- <p>
- قوة الضوء.<br />
- الطاقة هي قوة إضاءة الضوء المقاسة باللومن (lm).
- <br /><br />
-
- تغيير الطاقة سيغير أيضًا شدة الضوء.
- </p>
-
- <h3>[property:Float width]</h3>
- <p>عرض الضوء.</p>
-
- <h2>الطرق (Methods)</h2>
- <p>انظر إلى قائمة [page:Light Light] للطرق المشتركة.</p>
-
- <h3>[method:this copy]( [param:RectAreaLight source] )</h3>
- <p>
- نسخ قِيَم جميع خصائص [page:RectAreaLight source] إلى
- هذه RectAreaLight.
- </p>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </p>
- </body>
- </html>
|