Stable fluid simulation on GPU using WebGL.
Stable fluid simulation on GPU using WebGL.
Live version here.
This is an implementation of the Stable Fluid described by Jos Stam.
The simulation is implemented on GPU with the method provided in GPU Gems.
The diffusion term was dropped since it didn’t have much visual influence.
This simulation can run in two modes for storing the velocities:
OES_texture_float
, WEBGL_color_buffer_float
, OES_texture_float_linear
.