RectAreaLightHelper.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE html>
  2. <html lang="zh">
  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>
  10. [page:Object3D] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. 创建一个表示 [page:RectAreaLight] 的辅助对象.
  14. </p>
  15. <h2>代码示例</h2>
  16. <code>
  17. const light = new THREE.RectAreaLight( 0xffffbb, 1.0, 5, 5 );
  18. const helper = new RectAreaLightHelper( light );
  19. scene.add( helper );
  20. </code>
  21. <h2>构造函数</h2>
  22. <h3>[name]( [param:RectAreaLight light], [param:Hex color] )</h3>
  23. <p>
  24. [page:RectAreaLight light] -- 被模拟的光源.<br /><br />
  25. [page:Hex color] -- (可选) 如果没有赋值辅助对象将使用光源的颜色.
  26. </p>
  27. <h2>属性</h2>
  28. <p>请到基类 [page:Object3D] 页面查看公共属性.</p>
  29. <h3>[property:RectAreaLight light]</h3>
  30. <p>被模拟的区域光源.</p>
  31. <h3>[property:hex color]</h3>
  32. <p>
  33. 构造函数中传入的颜色值. 默认为 *undefined*. 如果改变该值,
  34. 辅助对象的颜色将在下一次 [page:.update update] 被调用时更新.
  35. </p>
  36. <h2>方法</h2>
  37. <p>请到基类 [page:Object3D] 页面查看公共方法.</p>
  38. <h3>[method:null dispose]()</h3>
  39. <p>销毁该区域光源辅助对象.</p>
  40. <h2>源码</h2>
  41. <p>
  42. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/helpers/RectAreaLightHelper.js examples/jsm/helpers/RectAreaLightHelper.js]
  43. </p>
  44. </body>
  45. </html>