Splats · const
SPLAT_WORDS_SH1
The same with degree-1 view-dependent colour: one more texel, and no more than one.
Explained in Gaussian splats.
const SPLAT_WORDS_SH1 = 12import { SPLAT_WORDS_SH1 } from '@driftengine/splats';In depth
The costing in sphericalHarmonics below is what picked degree 1 and it is worth reading before
anybody raises this. Nine coefficients fit a texel as bytes with a per-splat scale beside them,
which is +50% on the record and on the read; degree 2 is three more texels and degree 3 is six,
and degree 3 alone would put 307 MB a frame through a device already carrying 389.