Abstract base class for lights — all other light types inherit the properties and methods described here.
color — (optional) hexadecimal color of the light. Default is
intensity — (optional) numeric value of the light's strength/intensity. Default is
Creates a new Light. Note that this is not intended to be called directly (use one of derived classes instead).
See the base Object3D class for common properties.
Color of the light. Defaults to a new Color set to white, if not passed in the constructor.
The light's intensity, or strength. In physically correct mode, the units of intensity depend on the type of light. Default —
Read-only flag to check if a given object is of type Light.
See the base Object3D class for common methods.
Abstract dispose method for classes that extend this class; implemented by subclasses that have disposable GPU-related resources.
Copies the value of color and intensity from the source light into this one.
For more info on how to obtain the source code of this module see this page.