Splats · function
createDefaultSplatSort
The shipped capability: a worker over the same sort this module runs on the main thread.
Explained in Gaussian splats.
function createDefaultSplatSort(): SplatSortFnimport { createDefaultSplatSort } from '@driftengine/splats';In depth
sortSplatsByDepth.toString() is what goes into the worker, so there is one implementation of
the decision and not two — the 2026-08-17 rule, which is about exactly this. It works because
that function closes over nothing: its scratch and its two bucket counts all arrive as
arguments.