Skip to content

TileLookupFn = (tileIndex, slotIndex) => Node <"int">

Defined in: packages/three-flatland/src/lights/LightStore.ts:32

Function that reads a light index from a tile buffer/texture. Abstracts over WebGPU storage buffers and WebGL2 DataTextures.

Node <"int">

TSL node for the flat tile index

Node <"int">

TSL node for the slot within the tile (0..MAX_LIGHTS_PER_TILE-1)

Node <"int">

TSL int node containing the 1-based light index (0 = empty)