r/webgpu • u/Key_Calligrapher6269 • 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
1
u/divedave 17d ago
Looks amazing! Congratulations.
1
u/ze_pequeno 15d ago
Really cool, can we see the code? thanks for sharing