[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]

对被用于可视化的RectAreaLight的引用。

[property:hex color]

颜色参数是在构造函数中传入的,默认值为*undefined*。 如果这个值发生了改变,则在下一次[page:.update update]被调用时,辅助工具的颜色将会更新。

方法

See the base [page:Object3D] class for common methods.

[method:null dispose]()

Dispose of the rectAreaLightHelper.

[method:null update]()

更新辅助工具,使其匹配[page:.light]的位置与方向。

源代码

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]