[page:Object3D] →
[name]
Creates a visual aid consisting of a spherical [page:Mesh] for a [page:HemisphereLight HemisphereLight].
Example
var light = new v3d.HemisphereLight(0xffffbb, 0x080820, 1);
var helper = new v3d.HemisphereLightHelper(light, 5);
scene.add(helper);
Constructor
[name]([page:HemisphereLight light], [page:Number sphereSize], [page:Hex color])
[page:HemisphereLight light] -- The light being visualized.
[page:Number size] -- The size of the mesh used to visualize the light.
[page:Hex color] -- (optional) if this is not the set the helper will take the color of the light.
Properties
See the base [page:Object3D] class for common properties.
[property:HemisphereLight light]
Reference to the HemisphereLight being visualized.
[property:object matrix]
Reference to the hemisphereLight's [page:Object3D.matrixWorld matrixWorld].
[property:object matrixAutoUpdate]
See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the
hemisphereLight's [page:Object3D.matrixWorld matrixWorld].
[property:hex color]
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.
Methods
See the base [page:Object3D] class for common methods.
[method:null dispose]()
Dispose of the hemisphereLightHelper.
[method:null update]()
Updates the helper to match the position and direction of the [page:.light].
[sourceHint]