Renderer · interface
DenseLightVolume
Explained in Hello world.
interface DenseLightVolumeimport type { DenseLightVolume } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
originreadonly | readonly [number, number, number] | The world position of sample (0, 0, 0). |
spacingreadonly | number | Metres between two samples. |
dimsreadonly | readonly [number, number, number] | Samples on each axis. |
lightreadonly | Float32Array | Four floats a sample, x fastest then y then z: the colour, then 1 for a sample and 0 inside. |
directionreadonly | Float32Array | Four floats a sample: the direction light arrives from, weighted by brightness, then 0. |