用来在场景中显示[page:DirectionalLight]效果的辅助工具对象。 由一个平面和一条表示光的位置与方向的线组成。
var light = new THREE.DirectionalLight( 0xFFFFFF );
var helper = new THREE.DirectionalLightHelper( light, 5 );
scene.add( helper );
[page:DirectionalLight light]-- 将会被可视化的光。
[page:Number size] -- (可选)平面的大小,默认为*1*。(optional) dimensions of the plane. Default is *1*.
[page:Hex color] -- (可选)如果没有设置这个值,辅助工具将会使用光线本身的颜色。(optional) if this is not the set the helper will take the color of the light.
请参阅其基类[page:Object3D]来查看共有属性。
包含着用于显示方向光的位置的线(网格)。
Reference to the [page:DirectionalLight directionalLight] being visualized.
Reference to the light's [page:Object3D.matrixWorld matrixWorld].
See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the light's [page:Object3D.matrixWorld matrixWorld].
The color parameter passed in the constructor. Default is *undefined*. If this is changed, the helper's color will update the next time [page:.update update] is called.
See the base [page:Object3D] class for common properties.
Dispose of the directionalLightHelper.
Updates the helper to match the position and direction of the [page:.light directionalLight] being visualized.