DriftCapture · interface
Light
Explained in DriftCapture.
interface Lightimport type { Light } from '@driftengine/capture';Properties
| Name | Type | Description |
|---|---|---|
directionreadonly | readonly [number, number, number] | Towards the light, unit length. |
colourreadonly | readonly [number, number, number] | |
ambientreadonly | number | What arrives from everywhere else, so a shadowed point is dark rather than black. |