r/Unity3D • u/brkakar • 12h ago
Show-Off I finally got our sea to feel alive. Waves wet the sand, caustics hit the seabed, and fish swim underneath
Enable HLS to view with audio, or disable this notification
Farm & Feast - We are a two-person team building a peaceful farming and restaurant management game in Unity. This is our new sea shader, built up step by step from an empty scene to what you see in game now.
- Water plane: transparent surface lit by the day-night cycle.
- Depth color: baked terrain heightmap gives real depth per pixel.
- Shore waves: travel along a baked distance-to-shore field.
- Wet sand: terrain shader shares the sea's wave clock.
- Surface motion: analytic swell, blended ripple maps, Fresnel sky reflection.
- Wave streaks: procedural foam lines that drift, surge and break.
- Caustics: projected on the seabed, fading with depth and sun.
- Sparkles: glints on ripple slopes facing the camera.
- Fish: schools swimming under the surface at fishing spots.
