← /lab

// live demo

Fluid

A Stable Fluids solver running entirely on the GPU. Each frame the velocity field is advected, its divergence relaxed with a 30-step Jacobi pressure solve, then the gradient subtracted to keep it incompressible — the classic Navier-Stokes pipeline. Raw WebGL2 with float-texture framebuffer ping-pong; no Three.js, no library.