Skip to main content
 

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. This was created as part of a 2015 University project.


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