Interface: SpotLightOptions
Defined in: core/Lighting.ts:48
Options for configuring a spot light.
Properties
angle?
optionalangle:number
Defined in: core/Lighting.ts:58
Maximum angle of light dispersion from its direction (radians). Defaults to PI/3.
castShadow?
optionalcastShadow:boolean
Defined in: core/Lighting.ts:64
Whether the light casts shadows. Defaults to false.
color?
optionalcolor:string
Defined in: core/Lighting.ts:50
Light color. Defaults to '#ffffff'.
decay?
optionaldecay:number
Defined in: core/Lighting.ts:62
Light decay rate. Defaults to 2 (physically correct).
distance?
optionaldistance:number
Defined in: core/Lighting.ts:56
Maximum range of the light. Defaults to 0 (no limit).
intensity?
optionalintensity:number
Defined in: core/Lighting.ts:52
Light intensity. Defaults to 1.
penumbra?
optionalpenumbra:number
Defined in: core/Lighting.ts:60
Percent of the cone attenuated due to penumbra. Defaults to 0.
position?
optionalposition: [number,number,number]
Defined in: core/Lighting.ts:54
Light position [x, y, z]. Defaults to [0, 10, 0].
target?
optionaltarget: [number,number,number]
Defined in: core/Lighting.ts:66
Target position for the light to point at [x, y, z]. Defaults to origin.