Skip to content

Documentation / @ripl/3d / SpotLightOptions

Interface: SpotLightOptions ​

Defined in: 3d/src/core/lights.ts:83

Options for SpotLight.

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
angle?numberHalf-angle of the cone, in radians, clamped to below a right angle. Defaults to Math.PI / 6.-3d/src/core/lights.ts:85
color?stringThe light's colour. Defaults to '#ffffff'.PositionalLightOptions.color3d/src/core/lights.ts:42
decay?numberThe exponent of the inverse-distance falloff. Defaults to 2 for physically plausible falloff.PositionalLightOptions.decay3d/src/core/lights.ts:64
direction?Vector3The direction the light travels in.DirectedLightOptions.direction3d/src/core/lights.ts:52
distance?numberThe distance at which the light falls to zero. 0 means it never does. Defaults to 0.PositionalLightOptions.distance3d/src/core/lights.ts:62
enabled?booleanWhether the light contributes at all. Defaults to true.PositionalLightOptions.enabled3d/src/core/lights.ts:46
intensity?numberHow strongly the light contributes. Defaults to 1.PositionalLightOptions.intensity3d/src/core/lights.ts:44
penumbra?numberHow softly the cone fades at its edge, from 0 (hard) to 1 (fully soft). Defaults to 0.-3d/src/core/lights.ts:87
position?Vector3The light's world-space position. Defaults to the origin.PositionalLightOptions.position3d/src/core/lights.ts:60
space?LightSpaceWhether DirectionalLight.direction is fixed in world space or follows the camera. Defaults to 'world'.DirectedLightOptions.space3d/src/core/lights.ts:54