RectAreaLight.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html lang="ar">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body class="rtl">
  10. [page:Object3D] &rarr; [page:Light] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. ينبعث RectAreaLight بالضوء بشكل موحد عبر وجه سطح مستطيل. يمكن استخدام هذا النوع من الضوء لمحاكاة مصادر الضوء مثل النوافذ المشرقة أو الإضاءة المخططة.<br /><br />
  14. ملاحظات هامة:
  15. </p>
  16. <ul>
  17. <li>لا يوجد دعم للظلال.</li>
  18. <li>
  19. يتم دعم [page:MeshStandardMaterial MeshStandardMaterial] و
  20. [page:MeshPhysicalMaterial MeshPhysicalMaterial] فقط.
  21. </li>
  22. <li>
  23. يجب عليك تضمين
  24. [link:https://threejs.org/examples/jsm/lights/RectAreaLightUniformsLib.js RectAreaLightUniformsLib] في مشهدك واستدعاء `init()`.
  25. </li>
  26. </ul>
  27. <h2>مثال للكود</h2>
  28. <code>
  29. const width = 10;
  30. const height = 10;
  31. const intensity = 1;
  32. const rectLight = new THREE.RectAreaLight( 0xffffff, intensity, width, height );
  33. rectLight.position.set( 5, 5, 0 );
  34. rectLight.lookAt( 0, 0, 0 );
  35. scene.add( rectLight )
  36. const rectLightHelper = new RectAreaLightHelper( rectLight );
  37. rectLight.add( rectLightHelper );
  38. </code>
  39. <h2>أمثلة (Examples)</h2>
  40. <p>[example:webgl_lights_rectarealight WebGL / rectarealight ]</p>
  41. <h2>المنشئ (Constructor)</h2>
  42. <h3>
  43. [name]( [param:Integer color], [param:Float intensity], [param:Float width], [param:Float height] )
  44. </h3>
  45. <p>
  46. [page:Integer color] - (اختياري) لون سداسي عشري للضوء. الافتراضي
  47. هو 0xffffff (أبيض).<br />
  48. [page:Float intensity] - (اختياري) شدة الضوء ، أو سطوعه.
  49. الافتراضي هو 1.<br />
  50. [page:Float width] - (اختياري) عرض الضوء. الافتراضي هو 10.<br />
  51. [page:Float height] - (اختياري) ارتفاع الضوء. الافتراضي هو 10.<br /><br />
  52. إنشاء جديد [name].
  53. </p>
  54. <h2>الخصائص (Properties)</h2>
  55. <p>انظر إلى قائمة [page:Light Light] للخصائص المشتركة.</p>
  56. <h3>[property:Float height]</h3>
  57. <p>ارتفاع الضوء.</p>
  58. <h3>[property:Float intensity]</h3>
  59. <p>
  60. شدة الضوء. القيمة الافتراضية هي `1`.<br />
  61. الشدة هي الإضاءة (السطوع) للضوء المقاسة بالنيتات
  62. (cd/m^2).<br /><br />
  63. تغيير الشدة سيغير أيضًا قوة الضوء.
  64. </p>
  65. <h3>[property:Boolean isRectAreaLight]</h3>
  66. <p>علامة للقراءة فقط للتحقق مما إذا كان كائنًا معينًا من نوع [name].</p>
  67. <h3>[property:Float power]</h3>
  68. <p>
  69. قوة الضوء.<br />
  70. الطاقة هي قوة إضاءة الضوء المقاسة باللومن (lm).
  71. <br /><br />
  72. تغيير الطاقة سيغير أيضًا شدة الضوء.
  73. </p>
  74. <h3>[property:Float width]</h3>
  75. <p>عرض الضوء.</p>
  76. <h2>الطرق (Methods)</h2>
  77. <p>انظر إلى قائمة [page:Light Light] للطرق المشتركة.</p>
  78. <h3>[method:this copy]( [param:RectAreaLight source] )</h3>
  79. <p>
  80. نسخ قِيَم جميع خصائص [page:RectAreaLight source] إلى
  81. هذه RectAreaLight.
  82. </p>
  83. <p>
  84. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  85. </p>
  86. </body>
  87. </html>