The .drft container · interface
DrftLightVolume
The same shape as core's DenseLightVolume, so a read volume goes straight to the renderer.
Explained in The .drft container.
interface DrftLightVolumeimport type { DrftLightVolume } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
originreadonly | readonly [number, number, number] | |
spacingreadonly | number | |
dimsreadonly | readonly [number, number, number] | |
lightreadonly | Float32Array | Four floats a sample, x fastest: the colour, then 1 for a sample and 0 inside solid. |
directionreadonly | Float32Array | Four floats a sample: the direction light arrives from, then 0. |