← /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.

Move leaves a soft wake Drag throws the current Click or tap blooms fresh dye

The current is idling. Move through it or press anywhere.