Godot Tutorial: Realistic Water with Dynamic Foam
Public- 31 Aug, 2026

Emil J has published a Godot tutorial that walks through building a realistic water shader from scratch using Gerstner waves. While implementing them, he explains how the waves work: direction, phase, vertical and horizontal displacement, and how to combine multiple waves to get a natural-looking surface. He also adds noise to break up the repetitive pattern and calculates normals for better lighting and reflections, so the surface responds correctly to light and reflections rather than looking flat.
A follow-up video extends the same shader with dynamic ocean foam: the Jacobian determinant, together with Gerstner wave displacement, generates foam where the water churns. The first tutorial is designed to leave you with a fully animated water shader that can be built on further with the foam pass. The article also notes that Godot 4.8 is now in development, with new features including Trail3D, VisualShader node groups, multi-bounce ambient occlusion, and directional lightmap specular light.