Realistic water rendering using shaders in OpenGL. Inspired from Evan Wallace's WebGL water rendering.
Play the simulation by running 'Water.exe' in 'Release' folder.
- Raytraced reflections and refractions
- Heightfield water simulation
- Caustics (https://medium.com/@evanwallace/rendering-realtime-caustics-in-webgl-2a99a29a0b2c)
- Draw on the water to make ripples
- Drag the background to rotate the camera
- Press SPACEBAR to pause and unpause
- Use WSAD keys to move the light
- Press O to change colour of water. Blue water helps in seeing caustics more clearly.