Documentation / @ripl/3d / DirectedLightOptions
Interface: DirectedLightOptions ​
Defined in: 3d/src/core/lights.ts:50
Options for a light that has an orientation.
Extends ​
Extended by ​
Properties ​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
color? | string | The light's colour. Defaults to '#ffffff'. | LightOptions.color | 3d/src/core/lights.ts:42 |
direction? | Vector3 | The direction the light travels in. | - | 3d/src/core/lights.ts:52 |
enabled? | boolean | Whether the light contributes at all. Defaults to true. | LightOptions.enabled | 3d/src/core/lights.ts:46 |
intensity? | number | How strongly the light contributes. Defaults to 1. | LightOptions.intensity | 3d/src/core/lights.ts:44 |
space? | LightSpace | Whether DirectionalLight.direction is fixed in world space or follows the camera. Defaults to 'world'. | - | 3d/src/core/lights.ts:54 |