Create, Compete & Win at Redbrick Connect 2024! 🎉

Light

This is the base class that all lights inherit from, including directional lights, point lights, etc.

The Light also inherits from Object3D, so in addition to the properties and functions described below, you can also use the properties and functions that exist in THREE.Object3D and THREE.Object3D.Light.

Properties

.color

.color : Color

Color of the light. Defaults to a new Color set to white, if not passed in the constructor.

.intensity

.intensity : Float

The light’s intensity, or strength.
In physically correct mode, the units of intensity depend on the type of light.
Default - 1.0.


Lights that inherit from Light Class include the following