texWidth constant

int const texWidth

Atlas width in pixels. With bit-addressing in the shader we require: texWidth == pixelsPerSplat * 512 (= 2560), so base_uv = ((idx & 0x1ff) * pixelsPerSplat, idx >> 9)

Implementation

static const int texWidth = 2560;