Splats · interface
SplatView
What a consumer hands the pass each frame.
Explained in Gaussian splats.
interface SplatViewimport type { SplatView } from '@driftengine/splats';In depth
The camera comes from the caller rather than from the renderer, because PassContext
carries what the frame is and not what is being looked at — and a contributed pass has no
business reaching into the renderer for a matrix the caller already has. It is the same shape
every draw verb takes: the caller says where it is looking.
Properties
| Name | Type | Description |
|---|---|---|
viewreadonly | ArrayLike<number> | Column-major, as Camera publishes them.More
|
projectionreadonly | ArrayLike<number> | |
widthPxreadonly | number | In pixels, because the ellipse is built in pixel space. |
heightPxreadonly | number |