Just a quick example of 2D Lattice Boltzmann Method (LBM) fluid simulation implemented in WebGPU. At time of writing support for WebGPU is limited to Chromium-based browsers, with support on mobile depending on the device.
Click to add density. Moving the mouse adds a little velocity.
Demo
0.02
The source code for this demo is available. It was put together pretty quickly, so no guarantees about correctness.