/** * The `SplatModifier`s of `.csgs` GPU playback: they evaluate every splat's * hat curves at a time uniform from a section packed by * `formats/csgs/csgs-gpu-layout.ts`, so a section is uploaded once and a * frame costs no CPU evaluation and no upload. * * {@link csgsCurveModifier} moves the center (`offset`, the position knots * are deltas from the pool center), shapes the covariance through its linear * output (the base covariance is the identity, so `M = R(t)·S(t)` gives * `R·S²·Rᵀ`), sets the DC color and opacity, and masks dead splats. * {@link csgsPositionModifier} is its position part alone, for * `SplatMesh.sortDisplacement`: 2 texture reads and 2 channel reads per * splat per sort instead of 10 and 3. */ import * as THREE from 'three/webgpu'; import type { SplatModifier } from '../core/splat-modifier'; /** Channel names of the per-splat headers (see the layout module). */ export declare const CSGS_CHANNELS: readonly ["csgsBase", "csgsK", "csgsLife"]; /** Uniforms of the shown section. */ export interface CsgsCurveUniforms { /** * Section-local frame time, `t − g0` (fractional frames interpolate), * computed on the CPU in double precision. */ readonly local: THREE.UniformNode<'float', number>; /** `max(nframes − 1, 1)` of the shown section. */ readonly span: THREE.UniformNode<'float', number>; } /** * The position part of {@link csgsCurveModifier}, for * `SplatMesh.sortDisplacement` (reads only the `P` knots). */ export declare function csgsPositionModifier(knots: THREE.DataTexture, u: CsgsCurveUniforms): SplatModifier; /** The curve-evaluating modifier over `knots` (see the module comment). */ export declare function csgsCurveModifier(knots: THREE.DataTexture, u: CsgsCurveUniforms): SplatModifier;