TileLookupFn
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.
Parameters
Section titled “Parameters”tileIndex
Section titled “tileIndex”Node <"int">
TSL node for the flat tile index
slotIndex
Section titled “slotIndex”Node <"int">
TSL node for the slot within the tile (0..MAX_LIGHTS_PER_TILE-1)
Returns
Section titled “Returns”Node <"int">
TSL int node containing the 1-based light index (0 = empty)