Classic Ocean Shader Example with Gestner Waves

Manipulating vertices in vertex shader using gerstner/trichoidal function.
Demo : three.js webgl - shaders - ocean - gerstner wave (githack.com)
Source : https://github.com/Sean-Bradley/three.js/blob/13218bbabc60d8d4ad51e46f36d900aad3ec41ae/examples/webgl_shaders_ocean_gerstner.html


18 Likes

Hi, How do we control the movement of object? like if I add few boats and it has different sizes, the movement is not proper for all boats