Documentation / @ripl/vue-3d / RiplSpotLightProps
Interface: RiplSpotLightProps ​
Defined in: vue-3d/src/types.ts:155
Props accepted by RiplSpotLight.
Extends ​
Properties ​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
angle? | number | Half-angle of the cone, in radians. Defaults to Math.PI / 6. | - | vue-3d/src/types.ts:157 |
color? | string | The light's colour. Defaults to #ffffff. | RiplPointLightProps.color | vue-3d/src/types.ts:123 |
decay? | number | The exponent of the inverse-distance falloff. Defaults to 2. | RiplPointLightProps.decay | vue-3d/src/types.ts:151 |
direction? | Vector3 | The direction the light travels in. | RiplDirectionalLightProps.direction | vue-3d/src/types.ts:139 |
distance? | number | The distance at which the light falls to zero. 0 means it never does. Defaults to 0. | RiplPointLightProps.distance | vue-3d/src/types.ts:149 |
enabled? | boolean | Whether the light contributes at all. Defaults to true. | RiplPointLightProps.enabled | vue-3d/src/types.ts:127 |
intensity? | number | How strongly the light contributes. Defaults to 1. | RiplPointLightProps.intensity | vue-3d/src/types.ts:125 |
penumbra? | number | How softly the cone fades at its edge, from 0 (hard) to 1 (fully soft). Defaults to 0. | - | vue-3d/src/types.ts:159 |
position? | Vector3 | The light's world-space position. Defaults to the origin. | RiplPointLightProps.position | vue-3d/src/types.ts:147 |
space? | "world" | "camera" | Whether the direction is fixed in world space or follows the camera. Defaults to world. | RiplDirectionalLightProps.space | vue-3d/src/types.ts:141 |