**Achieve that "Zelda/Rime" look instantly with this ready-to-use Water Shader for Godot 4.x.**
Stop struggling with complex visual shaders. This asset provides a fully functional, optimized water system with automatic foam generation and vertex displacement waves.
Show full description...
* **Depth-Based Foam:** Automatically detects objects touching the water and generates foam edges (requires Depth Prepass).
* **Vertex Displacement:** Real 3D waves that move vertices, not just a flat texture scrolling.
* **Fully Customizable:** Adjust wave height, speed, foam width, and deep water colors in real-time.
* **Transparency (Beer's Law):** Realistic depth fogging – water is transparent at the edges and opaque in the deep.
* **Godot 4 Ready:** Written in GDShader specifically for the Forward+ renderer.
### 📦 Contents
* `water.gdshader` (Clean, commented code)
* `WaterDemo.tscn` (Drag-and-drop scene setup)
### 🚀 Quick Start
1. Add a MeshInstance3D (PlaneMesh) to your scene.
2. Increase `Subdivide Width/Depth` to 64+ (Important for waves!).
3. Apply the shader material.
4. Enjoy the view!
---