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): DenseLightVolume
import { bakeDenseField } from '@driftengine/core';

Parameters

ParameterTypeDescription
lightsreadonly FieldLight[]
falloffPointLightFalloff
distanceDistanceAt | null
boundsArrayLike<number>
spacingnumber