import * as THREE from 'three/webgpu'; import { type DisplayColorModifier, type FloatUniform, type Vec2Uniform } from '../core/splat-material-types'; import { uniformArray } from 'three/tsl'; /** * Creates the unified EWA draw material for gathered world-space splats. * * Its vertex stage reads both the sorter-written order and the gather-written * centers, covariance, and resolved color from storage buffers. It keeps the * verified ±3σ / exp(-4.5·|q|²) convention used by {@link SplatMesh}. */ export declare function createWorkBufferMaterial(options: { capacity: number; centers: THREE.StorageBufferAttribute; colors: THREE.StorageBufferAttribute; covarianceA: THREE.StorageBufferAttribute; covarianceB: THREE.StorageBufferAttribute; isotropicMix: THREE.StorageBufferAttribute; isotropicScreenRadius: THREE.StorageBufferAttribute; order: THREE.StorageInstancedBufferAttribute; /** Compute-projected records; absent keeps the established vertex path. */ projected?: { clipCenters: THREE.StorageBufferAttribute; axes: THREE.StorageBufferAttribute; parameters: THREE.StorageBufferAttribute; }; focal: Vec2Uniform; viewport: Vec2Uniform; maxStdDev: FloatUniform; /** Screen-space minimum splat radius in px; `0` disables. */ minSplatSizePx: FloatUniform; antialias: FloatUniform; /** Format-selected projected low-pass variance, in px². */ projectedLowPassVariance: FloatUniform; /** LCC always preserves the low-pass integral; standard follows antialias. */ compensateProjectedLowPass: FloatUniform; /** Core projected-2D DoF focus plane. Live; `0` aperture disables. */ dofFocusDistance: FloatUniform; dofAperture: FloatUniform; /** SuperSplat-style on-screen diameter cull in px; `0` disables. */ minPixelSize?: number; /** SuperSplat-style opacity × major × minor cull; `0` disables. */ minContribution?: number; /** Optional display-only RGB transform; omitted adds no fragment work. */ displayColorModifier?: DisplayColorModifier | null; /** * Live whole-source opacity: `[start, end, scale, 0]` work-slot ranges (see * `live-opacity.ts`) and how many are in use. Omitted draws `centers.w` as is. */ liveOpacity?: { ranges: ReturnType; count: FloatUniform; }; }): THREE.NodeMaterial;