TILE_SIZE
constTILE_SIZE:16=16
Defined in: packages/three-flatland/src/lights/ForwardPlusLighting.ts:31
Screen-space tile edge in pixels.
16px gives finer-grained coverage of small fill lights (slime glows ~40 world units) so the tile’s closest-point score stays representative of what the fragment would see at the tile center. 32px showed visible blockiness on small fill lights because the tile AABB could contain the light while its effective reach barely extends to the tile’s opposite corner — the scoring would keep the light on the light’s own side of the tile but evict it by the far side, producing grid-aligned intensity falloff.
CPU cost at 16px doubles vs 32px (more tiles), but dedup + the reservoir path keep per-tile work bounded, and the per-fragment shader loop is unchanged either way (MAX_LIGHTS_PER_TILE caps it).