Skip to main content

ATTR_TEX_WIDTH

Constant ATTR_TEX_WIDTH 

Source
pub const ATTR_TEX_WIDTH: u32 = 4096;
Expand description

Width (texels) of the GPU attribute/atlas textures: chunk vertex pools and per-chunk detail atlases are 1-D runs wrapped at this width. Shaders read it as attr_w to recover 2-D texel coords from a linear index.