r/webgpu • • 17d ago

shallow water sim in WebGPU compute, 30 s breakdown from height field to final render

Enable HLS to view with audio, or disable this notification

built this with three.js WebGPU and TSL, the stream is a shallow water grid stepped in compute every frame, the video goes through each pass, bed height, depth, velocity, advected ripples, foam, caustics, raw render, then post

runs 60 fps at 1080p on my laptop with the 512 grid

live here : https://stream.mulualem.com

34 Upvotes

6 comments sorted by

1

u/divedave 17d ago

Looks amazing! Congratulations.

1

u/Key_Calligrapher6269 16d ago

thanks thanks 🙂

1

u/ze_pequeno 15d ago

Really cool, can we see the code? thanks for sharing

1

u/Key_Calligrapher6269 15d ago

glad you dig it, thanks man

1

u/ze_pequeno 15d ago

wow, looking at your other responses you are a douchebag. At least share the code so you bring something positive in this world

1

u/Key_Calligrapher6269 15d ago

called me a douchebag and asked for free code in the same breath, bold strategy