Skip to content

Documentation / @ripl/vue-3d / RiplSpotLightProps

Interface: RiplSpotLightProps ​

Defined in: vue-3d/src/types.ts:155

Props accepted by RiplSpotLight.

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
angle?numberHalf-angle of the cone, in radians. Defaults to Math.PI / 6.-vue-3d/src/types.ts:157
color?stringThe light's colour. Defaults to #ffffff.RiplPointLightProps.colorvue-3d/src/types.ts:123
decay?numberThe exponent of the inverse-distance falloff. Defaults to 2.RiplPointLightProps.decayvue-3d/src/types.ts:151
direction?Vector3The direction the light travels in.RiplDirectionalLightProps.directionvue-3d/src/types.ts:139
distance?numberThe distance at which the light falls to zero. 0 means it never does. Defaults to 0.RiplPointLightProps.distancevue-3d/src/types.ts:149
enabled?booleanWhether the light contributes at all. Defaults to true.RiplPointLightProps.enabledvue-3d/src/types.ts:127
intensity?numberHow strongly the light contributes. Defaults to 1.RiplPointLightProps.intensityvue-3d/src/types.ts:125
penumbra?numberHow softly the cone fades at its edge, from 0 (hard) to 1 (fully soft). Defaults to 0.-vue-3d/src/types.ts:159
position?Vector3The light's world-space position. Defaults to the origin.RiplPointLightProps.positionvue-3d/src/types.ts:147
space?"world" | "camera"Whether the direction is fixed in world space or follows the camera. Defaults to world.RiplDirectionalLightProps.spacevue-3d/src/types.ts:141