r/GraphicsProgramming • • 9d ago

breakdown of a real-time stream, shallow water equations on the GPU, advected ripples and caustics from the flow

346 Upvotes

my own project, one 512 x 512 shallow water grid runs in compute shaders with 8 substeps per frame, and every layer in the video is read from it, depth, velocity, foam where the flow converges, ripple coordinates advected by the velocity and a caustics pass projected on the bed

solver is Chentanez and Müller 2010 on a staggered grid, three.js WebGPU with TSL

live (WebGPU) : https://stream.mulualem.com

ai disclosure : I built this with claude code, it wrote most of the code under my direction and helped draft this post too