This is a base for fluid simulations built using the amazing (really, try it!) declarative webgl helper api regl.
Only velocity field helpers and advection functionality is implemented, but since I really like the look and feel of this almost-but-not-quite-a-fluid effect I will probably build upon this base when creating various color soups and more realistic fluid stuff :)
Based heavily on Jamie Wong's article (see further resources below).
By Jakob Stasilowicz - kontakt [at] stasilo.se
$ npm install
$ gulp webserver
- Jamie Wong's great article and code on fluid simulations in webgl
- "Fast Fluid Dynamics Simulation on the GPU" in Nvidia's GPU Gems
- Amanda Ghassaei's webgl fluid simulation implementation