splat_view_prep.computeShader
- .metadata174 B
- README.md736 B
- bindings.yaml584 B
- shader.wgsl4.1 KB
README.md
splat_view_prep
One-thread pass that rebuilds the builtin splat_cull's CullUniforms for
the camera the current render target is drawn from. @frame.camera (the
only camera input the engine resolves per target) carries the inverse
view-projection and the eye; this pass inverts it, extracts the six frustum
planes and writes the 68-float block, so the sdfSplats cull and radix sort
order the pool for the viewport, every offscreen capture and every
render-to-texture camera alike.
| Slot | Access | Contents |
|---|---|---|
cam | read | @frame.camera — inverse view-projection, eye. |
statics | read | (count, buckets, near, far), (viewport w, h, min px, 0). |
view | read_write | CullUniforms as 68 floats. |