DriftCapture · interface
GaussianGradients
Where the gradients go: one entry per parameter of every Gaussian.
Explained in DriftCapture.
interface GaussianGradientsimport type { GaussianGradients } from '@driftengine/capture';Properties
| Name | Type | Description |
|---|---|---|
positionsreadonly | Float64Array | Three per Gaussian. |
scalesreadonly | Float64Array | |
rotationsreadonly | Float64Array | Four per Gaussian, xyzw. |
colorsreadonly | Float64Array | |
sh1readonly | Float64Array | Nine per Gaussian, and left at zero for a cloud with no band to fit. |
screenreadonly | Float64Array | The gradients as the screen sees them, nine per Gaussian: the two of its centre in pixels,
the three of its screen covariance, its opacity, and its resolved colour.MoreEverything else here is a chain rule away from these. They are kept because the tiled device
rasteriser computes exactly this much and nothing further — the projection and the band are
per-splat work that is not worth a dispatch — so this is the surface
|
opacitiesreadonly | Float64Array | One per Gaussian. |