Skip to main content

light_tile

Function light_tile 

Source
pub const fn light_tile(tile: usize) -> usize
Expand description

Which atlas tile light tile tile of the light region is.

The one place the “cascades first, then the lights” split is written down. Both the viewport the shadow pass sets and the tile mesh.slang samples come through it — the shader’s own light_tile is the same arithmetic, and crcbl_shaders::mesh’s drift test is what holds the two together.