fish_motion.rasterShader
- .metadata17 B
- README.md699 B
- bindings.yaml470 B
- shader.wgsl2.1 KB
README.md
fish_motion
Abyssal Garden port: motion vectors for the fish schools drawn by fish.rasterShader. The vertex stage pulls the same mesh and instance buffers, places each vertex with the same time-driven swimming path at this frame's time and at the previous frame's (tPrev), and projects both through this and the previous render's view-projection (@frame.camera); the fragment stage writes the NDC displacement into @scene.motion, depth-tested lessEqual without writing so only the visible fish surface is written. Drawn by abyssal.renderFeature at afterLighting, right after the camera-motion pass (motion.rasterShader), so TAA follows the swimming fish instead of smearing them.