Tidal 2 URP

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

  • TidalRenderFeature on 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.

Underwater tab on the material

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).

Caustics tab

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).

Body Underwater section

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.

Body Underwater Particles section

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.

Underwater view in play mode

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

WantChange
Clearer waterLower Fog Density; raise Absorption Depth
Different tintAbsorption colour and Deep Scatter
Stronger sun shaftsGod Ray Strength, Length
Caustics on the seabedCaustics tab Strength; Depth Range for how deep they reach
Softer waterline bandMeniscus Style Soft, Blur
Darker at night/sunsetDarkens 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

SymptomCauseFix
Going under changes nothingRender feature missing / Has Underwater offAdd the feature to the Renderer; enable on the body
Works in editor, not in buildShaders strippedValidator > Always Included Shaders
Bounded body’s sides look empty from outsideEdge Underwater Mask offTurn it on
Too foggy to seeFog Density highLower it