Skip to main content

Type Alias: DirectionalLight

DirectionalLight = object

Defined in: modules/lighting/lights/lighting.ts:49

Directional light defined only by its incoming world-space direction.

Properties​

color?​

optional color?: Readonly<NumberArray3>

Defined in: modules/lighting/lights/lighting.ts:55

RGB light color in the existing 0..255 convention used by luma.gl materials.


direction​

direction: Readonly<NumberArray3>

Defined in: modules/lighting/lights/lighting.ts:53

World-space direction in which light travels.


intensity?​

optional intensity?: number

Defined in: modules/lighting/lights/lighting.ts:57

Scalar intensity multiplier applied to the light color.


type​

type: "directional"

Defined in: modules/lighting/lights/lighting.ts:51

Discriminator used to identify directional lights in lights: Light[].