The .drft container · interface
DrftLight
Explained in The .drft container.
interface DrftLightimport type { DrftLight } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
kindreadonly | DrftLightKind | |
namereadonly | string | The node's name in the source, or empty. |
positionreadonly | readonly [number, number, number] | World space, metres. |
directionreadonly | readonly [number, number, number] | Where a spot or a directional light points, world space and unit length. glTF's local −z. |
colorreadonly | readonly [number, number, number] | Linear, 0 to 1 a channel. |
intensityreadonly | number | Candela for a point or a spot, lux for a directional light. |
rangereadonly | number | Metres at which the source's author cut the light off, or 0 for no cut. |
innerConeRadreadonly | number | |
outerConeRadreadonly | number |