]> git.tdb.fi Git - libs/gl.git/commit
Remove the separate clamping step from forest pond fluid simulation
authorMikko Rasa <tdb@tdb.fi>
Sun, 11 Sep 2022 17:23:52 +0000 (20:23 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 11 Sep 2022 17:23:52 +0000 (20:23 +0300)
commit1da53713b7fc7a69e37263e194686a805db56fcb
tree12ecaba17399ee284d42d7202cbfc3742c4e275b
parent7efe2d35f5d53c0f086a1b85b7d3dea6a6c709ab
Remove the separate clamping step from forest pond fluid simulation

Instead calculate clamping on the fly in the integration shader.  This
ends up using a few less texture reads in total.
demos/forestpond/data/fluidsim.glsl
demos/forestpond/data/fluidsim_clamp.glsl [deleted file]
demos/forestpond/data/fluidsim_fill.glsl
demos/forestpond/data/fluidsim_integrate.glsl
demos/forestpond/data/fluidsim_velocity.glsl
demos/forestpond/source/water.cpp
demos/forestpond/source/water.h