WebGL-Fluid-Simulation
WebGL-Fluid-Simulation copied to clipboard
Suggestion (i dont know if it's in the right spot this request)
You should add an option to choose how many random splats appear and how often they do. For example: every "x" seconds do "x" number of splats. Or even the possibility do to it in a range. For example: every "x" seconds do "x to y" numbers of splats.
You can do this but just running splatStack.push(parseInt(Math.random() * 20) + 5);
with a setTimeout()
For anyone else interested in doing this, pasting something along the lines of
setInterval(splatStack.push.bind(splatStack), 500, parseInt(Math.random() * 20) + 5)
this into the console will randomly add new splats. The second parameter is the interval in ms, and the third is the number of splats.