[page:Object3D] →
[name]
Creates a visual aid for a [page:RectAreaLight].
Example
var light = new v3d.RectAreaLight(0xffffbb, 1.0, 5, 5);
var helper = new v3d.RectAreaLightHelper(light);
scene.add(helper);
Constructor
[name]([page:RectAreaLight light], [page:Hex color])
[page:RectAreaLight light] -- The light being visualized.
[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:RectAreaLight light]
Reference to the RectAreaLight being visualized.
[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 rectAreaLightHelper.
[method:null update]()
Updates the helper to match the position and direction of the [page:.light].
[sourceHint]