Splats · const

SPLAT_STRIDE

Splats per row.

Explained in Gaussian splats.

const SPLAT_STRIDE = 1024
import { SPLAT_STRIDE } from '@driftengine/splats';

In depth

A power of two, so the shader's divide is a shift and the two textures index alike: the data texture is twice this wide because a splat is two texels, and the order texture is exactly this wide because a slot is one.

1024 puts a million splats in 977 rows, comfortably inside WebGL2's guaranteed 2048 — see splatRows, which is where that limit is checked rather than assumed.