[page:Object3D] →

[name]

创建一个表示 [page:RectAreaLight] 的辅助对象.

例子

var light = new THREE.RectAreaLight( 0xffffbb, 1.0, 5, 5 ); var helper = new THREE.RectAreaLightHelper( light ); scene.add( helper );

构造函数

[name]( [param:RectAreaLight light], [param:Hex color] )

[page:RectAreaLight light] -- 被模拟的光源.

[page:Hex color] -- (可选) 如果没有赋值辅助对象将使用光源的颜色.

属性

请到基类 [page:Object3D] 页面查看公共属性.

[property:RectAreaLight light]

被模拟的区域光源.

[property:hex color]

构造函数中传入的颜色值. 默认为 *undefined*. 如果改变该值, 辅助对象的颜色将在下一次 [page:.update update] 被调用时更新.

方法

请到基类 [page:Object3D] 页面查看公共方法.

[method:null dispose]()

销毁该区域光源辅助对象.

[method:null update]()

更新辅助对象,与 [page:.light] 属性的位置和方向保持一致.

源码

[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/helpers/RectAreaLightHelper.js examples/jsm/helpers/RectAreaLightHelper.js]