DriftCapture · interface

Light

Explained in DriftCapture.

interface Light
import type { Light } from '@driftengine/capture';

Properties

NameTypeDescription
directionreadonlyreadonly [number, number, number]Towards the light, unit length.
colourreadonlyreadonly [number, number, number]
ambientreadonlynumberWhat arrives from everywhere else, so a shadowed point is dark rather than black.