/Gerstner-Water

A Unity shader for simulating and rendering water surfaces

Primary LanguageShaderLabGNU General Public License v3.0GPL-3.0

Gerstner-Water

A Unity shader for simulating water surfaces with Gerstner waves. Some shading effects such as Fresnel and bump mapping are also included to make the water more realistic.

waves

Usage

  • Install Unity (tested on version 2019.2.3f1).
  • Open Assets/Scenes/Scene.unity.
  • Play with various parameters and try out the effect!

parameters

Note: Terrain assets are from Free Island Collection on Unity Asset Store. Some textures are downloaded from the Internet.

Reference

Effective Water Simulation from Physical Models: https://developer.nvidia.com/gpugems/GPUGems/gpugems_ch01.html