/** * Splat depth for post effects. Splats write no depth, so fog, aerial * perspective and depth of field would otherwise run straight through them. */ import * as THREE from 'three/webgpu'; /** Options for {@link renderSplatDepth}. */ export interface SplatDepthOptions { /** * Fragment alpha below which a splat writes no depth (default `0.5`). Faint * Gaussian tails and thin stacks of low-opacity splats are not a surface: a * lower cutoff stops a fog ray at each splat's footprint, which reads as an * opaque blob around every splat. */ alphaThreshold?: number; } /** * Renders the depth of every visible splat draw in `scene` into `target`'s * depth buffer, alpha-tested at `alphaThreshold`. Other objects are skipped: * the result is splat depth only, in the renderer's own depth convention * (reversed when the renderer uses a reversed depth buffer). * * Draws what is already prepared: call it after the frame's `update`, before * or after the main render. It does not sort, update LOD, or count as a * rendered frame, so a staged streamed generation is not acknowledged by it, * and a draw that is staged and hidden (`colorWrite` off) writes no depth. * Works on standalone meshes and unified draws, on both backends. * * `target` must have a depth buffer (give it a `depthTexture` to sample the * result); its size is the host's choice, half the drawing buffer is usually * enough. Renderer state is restored afterwards. */ export declare function renderSplatDepth(renderer: THREE.WebGPURenderer, scene: THREE.Scene, camera: THREE.Camera, target: THREE.RenderTarget, options?: SplatDepthOptions): void;