I will make a more detailed blog entry about this because it was an adventure to reach this.
It was all about converting a beautiful shader generated waves mvement in a mathematic function that allows to predict waves forces at a position (x,y,z) , to get for example:
- realistic and not randomly ingame wave shaking effects on a boat, or wood prop or whatever.
- Splash effects or character realistic reactions depending on the wave water level.
This is a little showcase that shows how the terrain is replicating the main shader waves movement.
> The terrain's movements are generated with a script and is rendered in blue.
> The shader is placed to compare a little bit higher over the terrain and has transparency.