Fluid Simulation Shader
I used the following sources to write this simulation:
Real-time ink simulation using a grid-particle method
Fast Fluid Dynamics Simulation on the GPU - a very well written tutorial about programming the Navier-Stokes equations on a GPU.
Stable Fluids - a paper about numerical methods for evaluating Navier-Stokes on a discrete grid.
By
Amanda Ghassaei, code on
Github.