The .drft container · interface

DrftLight

Explained in The .drft container.

interface DrftLight
import type { DrftLight } from '@driftengine/drft';

Properties

NameTypeDescription
kindreadonlyDrftLightKind
namereadonlystringThe node's name in the source, or empty.
positionreadonlyreadonly [number, number, number]World space, metres.
directionreadonlyreadonly [number, number, number]Where a spot or a directional light points, world space and unit length. glTF's local −z.
colorreadonlyreadonly [number, number, number]Linear, 0 to 1 a channel.
intensityreadonlynumberCandela for a point or a spot, lux for a directional light.
rangereadonlynumberMetres at which the source's author cut the light off, or 0 for no cut.
innerConeRadreadonlynumber
outerConeRadreadonlynumber