Class: Light

Light()

Abstract base class for light sources.

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

Light

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