GLSL for simple water surface effects

ksimeon picture ksimeon · Feb 16, 2011 · Viewed 26.5k times · Source

I'm looking for some pointers on how to implement simple water surface effects in OpenGL ES 2.0. Nothing fancy like reflection or refraction, just a basic ripple/wave effect that modulates over time. Performance is critical. I'm assuming this will be best done in a shader.

Any pointers on how to best handle this?

Answer

Gareth Stockwell picture Gareth Stockwell · Mar 7, 2011

Adrian Boeing's blog has example GL code, accompanied by clear explanations, for a number of effects including ripple.