Splats · interface

SplatViewLocal

The camera as the sorter needs it: in the capture's coordinates rather than the world's.

Explained in Gaussian splats.

interface SplatViewLocal
import type { SplatViewLocal } from '@driftengine/splats';

In depth

Mutable and filled in place, because this is resolved once a frame per batch and the engine's rule about per-frame allocation binds a package exactly as it binds the renderer.

Properties

NameTypeDescription
dirXnumberThe camera's forward in the capture's own space, unit length.
dirYnumber
dirZnumber
originXnumberThe camera's position in the capture's own space.
originYnumber
originZnumber