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?
optionalattenuation?:Readonly<NumberArray3>
Defined in: modules/lighting/lights/lighting.ts:73
Constant, linear, and quadratic attenuation coefficients.
color?
optionalcolor?: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?
optionalinnerConeAngle?:number
Defined in: modules/lighting/lights/lighting.ts:75
Inner spotlight cone angle in radians.
intensity?
optionalintensity?:number
Defined in: modules/lighting/lights/lighting.ts:71
Scalar intensity multiplier applied to the light color.
outerConeAngle?
optionalouterConeAngle?: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[].