You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
3.5 KiB
HTML

<!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] &rarr; [page:Light] &rarr;
<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>