Underwater Rendering
What it is
When the camera goes below a body’s surface Tidal draws the underwater view: volumetric fog and absorption, the underside of the surface with refraction, god rays, volumetric lights, seabed caustics, floating particles and bubbles, and a meniscus band where the camera crosses the waterline. Foam on the surface shades the light below it.
Requirements
TidalRenderFeatureon the URP Renderer - without it going under changes nothing.- Body > Underwater > Has Underwater on (default).
- Run
Window > Tidal 2 > Validator.
Perspective camera required for cut-aways: In v2.2, orthographic cameras and Scene view Iso mode show the water surface, but not bounded-body sides or volume cross-sections. Switch to Perspective to view the water through a cut face.
In the editor
Underwater looks are on the Surface Material, Underwater and Caustics tabs; which effects run is on the body and the render feature.
Screenshot: the material’s Underwater tab: Surface (Refraction:Reflection Ratio, Ripple), Volumetric Shading (Refraction Tint, Deep Scatter, Absorption, Absorption Depth 2.5, Fog Density 0.1, Volumetric Light Steps 12, Distance 60), God Ray (Strength 0.38, Phase G, Focus Strength, Length 31.5, Surface Light, Foam Shadow 0.75), Meniscus (Color, Thickness 6.3 px, Strength, Style Solid/Soft, Blur 6 px), Misc (Darkens With Sunset, Show Shadow Underwater).
Screenshot: the Caustics tab: Look (Strength 0.16, Lens Strength, Depth Range 14, Redistribute, Dispersion, Depth Fade, Shadow Clip) and Quality (Depth Slices 4, Detail High, Resolution x1024, Blur Medium).
Screenshot: Tidal Body > Underwater: Has Underwater, and Volume Masks, God Rays, Volumetric Lights, Volumetrics Resolution set to “Use Render Feature Setting” (per-body override possible). Edge Underwater Mask shows a bounded body’s water through its sides.
Screenshot: Tidal Body > Underwater Particles: motes (count 500, size, colour, drift) and bubbles (count 90, size, rise speed) within a 12 m radius of the camera.
Screenshot (Game view, Demo_Island): looking up from below the surface: the rippled underside of the water fills the top of the frame in bright blue with patches of foam, fading into deep teal fog below.
Tuning
| Want | Change |
|---|---|
| Clearer water | Lower Fog Density; raise Absorption Depth |
| Different tint | Absorption colour and Deep Scatter |
| Stronger sun shafts | God Ray Strength, Length |
| Caustics on the seabed | Caustics tab Strength; Depth Range for how deep they reach |
| Softer waterline band | Meniscus Style Soft, Blur |
| Darker at night/sunset | Darkens With Sunset (on) |
Scripting
if (TidalManager.Instance != null &&
TidalManager.Instance.TryGetCameraWaterInfo(Camera.main, out TidalWaterBody b, out float waterY))
{
bool underwater = Camera.main.transform.position.y < waterY;
}
Common issues
| Symptom | Cause | Fix |
|---|---|---|
| Going under changes nothing | Render feature missing / Has Underwater off | Add the feature to the Renderer; enable on the body |
| Works in editor, not in build | Shaders stripped | Validator > Always Included Shaders |
| Bounded body’s sides look empty from outside | Edge Underwater Mask off | Turn it on |
| Too foggy to see | Fog Density high | Lower it |