Log inGet started
Package

sdfSplats.package

Newest version

README.md

splat_record

WGSL for writing Zero's packed 24-byte Gaussian splat record from a compute shader — position, log-encoded per-axis scale, orientation quaternion, colour and opacity, the same layout a .spz / .ply capture is decoded into — so anything a compute shader generates (SDF surfaces, particles, simulations, point clouds) can be drawn as Gaussian splats by the sdfSplats render feature and the builtin splat cull, radix sort and gaussian splat draw.

Provides write_record(i, position, sigma, quat, colour, alpha), hide_record(i), quat_from_basis(t, b, n), scale_byte(s), and the constants RECORD_WORDS and SH_C0. The including shader declares the pool binding records (element: u32, read_write) and passes absolute record indices (params.first + i).