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 SplatViewLocalimport 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
| Name | Type | Description |
|---|---|---|
dirX | number | The camera's forward in the capture's own space, unit length. |
dirY | number | |
dirZ | number | |
originX | number | The camera's position in the capture's own space. |
originY | number | |
originZ | number |