Renderer · function

firstAreaShadowLayer

Where the area layers begin, given how many point lights the world has.

Explained in Hello world.

function firstAreaShadowLayer(pointLightCount: number): number
import { firstAreaShadowLayer } from '@driftengine/core';

Parameters

ParameterTypeDescription
pointLightCountnumber

In depth

One function rather than the same expression written in three files, which is the mistake pointShadowImage.ts records at DEFAULT_SOURCE_RADIUS: the array sizes itself, this set hands out indices, and the two disagreeing by one would have every rectangle sampling a lamp's map. Both call this.