GLSL Water Shader

A water shader created from scratch in OpenGL and GLSL, utilising a Blinn-Phong lighting model.


This simple water shader uses a modified Blinn-Phong lighting model, and can be lit by an imported HDR image. Lights are extracted from the image using a Median Cut algorithm before being loaded to the shader.

The rain effect is still very much experimental, and the normals are not calculated correctly when the effect is applied.