Renderer · const
MAX_AREA_LIGHTS
How many rectangles the lit pass shades against at once.
Explained in Hello world.
const MAX_AREA_LIGHTS = 4import { MAX_AREA_LIGHTS } from '@driftengine/core';In depth
Four, because a rectangle is a fixture rather than a lamp. A window, a softbox, a lit panel:
a scene with more than a handful of these is a scene that wants them baked into an environment,
which is what the prefilter and the loader are for. Raising it is a uniform-array size and an
iteration of the loop, exactly as MAX_POINT_LIGHTS is.