Skip to main content

Type Alias: SpotLight

SpotLight = object

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

Cone-shaped light emitted from a position and focused along a direction.

Properties​

attenuation?​

optional attenuation?: Readonly<NumberArray3>

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

Constant, linear, and quadratic attenuation coefficients.


color?​

optional color?: Readonly<NumberArray3>

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

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:67

World-space light direction.


innerConeAngle?​

optional innerConeAngle?: number

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

Inner spotlight cone angle in radians.


intensity?​

optional intensity?: number

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

Scalar intensity multiplier applied to the light color.


outerConeAngle?​

optional outerConeAngle?: number

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

Outer spotlight cone angle in radians.


position​

position: Readonly<NumberArray3>

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

World-space light position.


type​

type: "spot"

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

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