Renderer · interface
LightGrid
Explained in Hello world.
interface LightGridimport type { LightGrid } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
sourcesreadonly | readonly PointLightSource[] | |
cellreadonly | number | Metres a cell spans on each axis. |
originreadonly | readonly [number, number, number] | The world position of cell (0, 0, 0)'s corner. |
dimsreadonly | readonly [number, number, number] | |
startreadonly | Uint32Array | Where cell c's lights start in lights; start[c + 1] is where they end. |
lightsreadonly | Uint32Array | Source indices by cell, ascending within each. |
maxRadiusreadonly | number | The largest reach of any source, which widens every query. |
gatheredreadonly | Int32Array | The last gather, cell by cell: gathered[0..count). |