Skip to main content

FOG_FROXEL_X

Constant FOG_FROXEL_X 

Source
pub const FOG_FROXEL_X: u32 = 80;
Expand description

X/Y/Z dimensions of the volumetric-fog froxel volume. Sized to keep the per-frame compute cost modest (~230 k threads per dispatch) while preserving enough screen-space detail for shaft-of-light shadowing. Backends that implement the froxel path read these constants directly; the values also ride in FogFroxelParams.froxel_dims so shaders can map between absolute indices and normalised volume UVs without recompiling.