Gita Assets
Unity / Effects

Underwater Rendering for Stylized Water 2 (Extension) V1.2.8

Overview

This extension adds underwater rendering to the Stylized Water 2 shader asset, seamlessly blending the water with post processing effects. It draws a waterline lens effect for partially submerged cameras through an innovative technique, without requiring the camera to be snapped above or below the water or other tricks; it is also compatible with the Dynamic Effects extension, so effects such as ripples and shoreline waves also affect the camera water line.

Key features

Underwater fog based on the water deep/shallow colors, with an option to use volumes to blend settings; waterline rendering for partially submerged cameras, supporting split screen; scene lighting translated into the underwater fog, including sub-surface scattering, reacting to dynamic directional and ambient lighting; caustics rendering on geometry with a directional projection option; blurring and distortion; correctly shaded underside of the water for a seamless match; scalable performance with features limitable on the render feature; VR rendering support.
Imports directly into the StylizedWater2 folder wherever it is located. Executes before transparent materials, so they will not appear to be affected by fog. Third party fog effects will still apply to the underwater environment; as long as the underwater fog is denser, this will not be noticeable. Looks best when reflections and refractions are enabled on the water material. Performance and feature limiting options are exposed on the render feature, so they can be used for multiple quality levels. Using the combination of HDR, Tonemapping and the Gamma color-space will not guarantee the underwater fog matches the water perfectly; Linear color-space should be used. The waterline will always render when the camera goes below the water level; disable the static UnderwaterRenderer.EnableRendering boolean in game logic to handle such cases, or use the Underwater Trigger component. Fog needs geometry to work with; an empty scene/void underneath the water naturally results in a single-color fog appearance.

Included content

Includes sub-graphs to add underwater fog support for transparent Shader Graphs (+ASE); includes a subgraph for getting the water density and underwater mask, which can be used to fade out a custom transparent material into the water fog; includes a component to switch between different water bodies based on Box Colliders; includes the Underwater Trigger component; includes a functional demo scene. Scene and assets shown in video/screenshots are for showcasing and are not included.

Compatibility

The version supplied on this site is 1.2.9, and actual support follows that version. Current official specifications state compatibility with Unity 2021.3 through 2023.2; in the version compatibility matrix, Unity 2022.3.62f2 and 2021.3.16f1 both support URP only, with Built-in and HDRP unsupported. This extension is built on the Universal Render Pipeline shader library and rendering API, so it exclusively works in URP-based projects; users are expected to already know the Universal Render Pipeline and to have converted their project to it. Compatible with the Dynamic Effects extension; not compatible with Curved World 2020 or WaveMaker; the COZY and Atmospheric Height Fog assets require modifications (see documentation).

Requirements

Requires the Stylized Water 2 (v1.5.2+) asset to be installed; that asset is for Unity 2021-2023. The project must use the Universal Render Pipeline (URP).

Render pipeline compatibility

UnityBuilt-inURPHDRP
2022.3.62f2
2021.3.16f1

Technical specifications

Original creator
Staggart Creations
Current official version
1.2.9
Supported engines
2021.3.16, 2022.3.62, 2021.3.16f1, 2022.3.62f2
Render pipelines
2021.3.16f1 · URP; 2022.3.62f2 · URP
Official file size
2.31 MB
Official update date
2026-09-04
Asset file count
56
Package format
unitypackage
First official release
2021-08-09

Tags

Full description

📌 REQUIRES THE STYLIZED WATER 2 (v1.5.2+) ASSET TO BE INSTALLED! Before purchasing, you must acknowledge this (see section above) « Compatible with Unity 2021 .3 through 2023.2 » 📄 Documentation ⚙️ Compatibilty 🔗 Forum Thread Draws a waterline lens effect for partially submerged camera's, through an innovative technique. Unlike in many games, it won't be required to snap the camera to sit either above or below the water, or resort to other tricks. Compatible with the Dynamic Effects extension. Effects such as ripples and shoreline waves also affect the camera's water line. 🌊 Features: • Underwater fog based on the water's deep/shallow colors. Option to use volumes to blend settings. • Waterline rendering for partially submerged cameras (supports split screen) • Scene lighting is translated into the underwater fog, including sub-surface scattering. Reacts to dynamic directional and ambient lighting. • Caustics rendering on geometry. Directional projection option. • Blurring and distortion • Underside of the water is correctly shaded, to seamlessly match. • Includes sub-graphs to add underwater fog support for transparent Shader Graphs (+ASE) • Scalable performance, features can be limited on the render feature • Component to switch between different water bodies based on Box Colliders. • VR Rendering support 🚧 Limitations: • Not suitable for mobile hardware • Designed for oceans, lakes and ponds. Dioramas or aquariums aren't possible. • Can't mask underwater (eg. submarine windows) • Not a volumetric fog/light solution, but rather depth-based. • Requires a single water level (incompatible with rivers/planets) [ Refund policy ] Refunds cannot be granted for not having read the sections on this page Scene and assets shown in video/screenshots are for showcasing and aren't included. A functional demo scene is included though.

Imports directly into the StylizedWater2 folder (wherever it is located) Executes before transparent materials, so they will not appear to be affected by fog. Includes a subgraph for getting the water density and underwater mask, this can be used to fade out a custom transparent material into the water fog. Third party fog effects will still apply to the underwater environment. As long as the underwater fog is denser, this won't be noticeable. Looks best when reflections and refractions are enabled on the water material Performance and feature limiting options are exposed on the render feature, so can be used for multiple quality levels Using the combination of HDR, Tonemapping and the Gamma color-space will not guarantee the underwater fog matches the water perfectly (Linear color-space should be used). Waterline will always render when the camera goes below the water level. The static UnderwaterRenderer.EnableRendering boolean should be disabled in your game logic to handle such cases. Or by using the "Underwater Trigger" component. Fog needs geometry to work with, an empty scene/void underneath the water naturally results in a single-color fog appearance.

Note: not compatible with Curved World 2020 or WaveMaker. The COZY and Atmospheric Height Fog assets require modifications (see documentation).

⚠️ It is expected you already know what the Universal Render Pipeline is, and have already converted your project to it. Before you start development, you must decide which render pipeline to use in your project. Built on the Universal Render Pipeline's shader library and rendering API, so exclusively works in URP-based projects.

Ratings and reviews

You can rate and review this item after purchase.

No buyer reviews yet.

Underwater Rendering for Stylized Water 2 (Extension) V1.2.8 · Unity Effects · Preview 3Underwater Rendering for Stylized Water 2 (Extension) V1.2.8 · Unity Effects · Preview 4Underwater Rendering for Stylized Water 2 (Extension) V1.2.8 · Unity Effects · Preview 5Underwater Rendering for Stylized Water 2 (Extension) V1.2.8 · Unity Effects · Preview 6
Contact support