Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Undertow

Stir the current. A real-time GPU fluid simulation in your browser: drag to pour dye into a stable-fluids solver and watch it fold, split, and fade. WebGL2, no server, no dependencies, no build step.

→ Live: https://undertow.signalizeai.org

What it is

A Jos Stam stable-fluids solver running entirely in fragment shaders. Velocity and dye live in floating-point textures; every frame advects the velocity field, solves pressure with 20 Jacobi iterations, subtracts the gradient, then advects the dye. From those passes, smoke-like currents appear that never repeat.

Controls

  • Drag — stir dye into the current; fast strokes pour more
  • Palette — Lagoon / Ember / Bloom / Ghost dye sets
  • Pause, Reset, and a live fps readout
  • Leave it alone for a few seconds and it stirs itself

Run locally

Open public/index.html in a browser, or serve the folder:

npx serve public

License

MIT

About

Undertow — a real-time GPU fluid simulation in the browser. Stable fluids, drag to stir. WebGL2, no server, one file.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages