Renderer · function
selectGridLights
selectPointLights over a grid's sources, looking only at the lights near the eye: the same
choice, tie for tie, for a world of thousands of fixed lights that the plain scan would visit
every frame. See lightGrid.ts for why the result is the scan's exactly.
Explained in Hello world.
function selectGridLights(grid: LightGrid, x: number, y: number, z: number, out: PointLightBuffer, timeSeconds?: number, viewRange?: number, castX?: number, castY?: number, castZ?: number): voidimport { selectGridLights } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
grid | LightGrid | |
x | number | |
y | number | |
z | number | |
out | PointLightBuffer | |
timeSeconds? | number | |
viewRange? | number | |
castX? | number | |
castY? | number | |
castZ? | number |