Class: LightGizmo

LightGizmo(webglContext, light)

Visual helper for the directional lights. Note: materials/shaders treat the light direction as a vector pointing `towards` the light, while the gizmo arrow shows the opposite direction (where the light rays travel).

Constructor

new LightGizmo(webglContext, light)

Creates a new LightGizmo instance.
Parameters:
Name Type Description
webglContext WebGL2RenderingContext WebGL2 rendering context.
light DirectionalLight Target directional light.
Source:
Throws:
When the inputs are invalid.
Type
TypeError

Classes

LightGizmo

Members

light

Returns the target directional light.
Source:

Methods

setVisible(visible) → {void}

Sets gizmo visibility.
Parameters:
Name Type Description
visible boolean Whether the gizmo should be visible.
Source:
Throws:
When the visibility flag is invalid.
Type
TypeError
Returns:
Type
void