Renderer · function
bakeDenseField
Sum lights over the box bounds (min xyz, max xyz) at spacing metres. distance occludes, or
null for none. The first sample stands on the box's min corner.
Explained in Hello world.
function bakeDenseField(lights: readonly FieldLight[], falloff: PointLightFalloff, distance: DistanceAt | null, bounds: ArrayLike<number>, spacing: number): DenseLightVolumeimport { bakeDenseField } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
lights | readonly FieldLight[] | |
falloff | PointLightFalloff | |
distance | DistanceAt | null | |
bounds | ArrayLike<number> | |
spacing | number |