Skip to main content

Type Alias: PointLight

PointLight = object

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

Omnidirectional point light emitted from a world-space position.

Properties​

attenuation?​

optional attenuation?: Readonly<NumberArray3>

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

Constant, linear, and quadratic attenuation coefficients.


color?​

optional color?: Readonly<NumberArray3>

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

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


intensity?​

optional intensity?: number

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

Scalar intensity multiplier applied to the light color.


position​

position: Readonly<NumberArray3>

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

World-space light position.


type​

type: "point"

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

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