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