Constructor
new Light()
Creates a new light. This class is abstract and cannot be instantiated directly.
- Source:
Throws:
-
When attempting to instantiate the abstract `Light` class.
- Type
- Error
Classes
Methods
isEnabled() → {boolean}
Returns true when the light is enabled.
- Source:
Returns:
- Type
- boolean
setEnabled(enabled) → {void}
Enables or disables this light.
Parameters:
| Name | Type | Description |
|---|---|---|
enabled |
boolean | When true, the light contributes to rendering. |
- Source:
Throws:
-
When the value is not a boolean.
- Type
- TypeError
Returns:
- Type
- void