Renderer · interface

DenseLightVolume

Explained in Hello world.

interface DenseLightVolume
import type { DenseLightVolume } from '@driftengine/core';

Properties

NameTypeDescription
originreadonlyreadonly [number, number, number]The world position of sample (0, 0, 0).
spacingreadonlynumberMetres between two samples.
dimsreadonlyreadonly [number, number, number]Samples on each axis.
lightreadonlyFloat32ArrayFour floats a sample, x fastest then y then z: the colour, then 1 for a sample and 0 inside.
directionreadonlyFloat32ArrayFour floats a sample: the direction light arrives from, weighted by brightness, then 0.