Stylized Water 3 – Documentation

Stylized Water 3

Stylized Water 3
Version: 3.3.4
Review

4.9.Third party integrations #

When importing the water shader into your project, a check is performed to detect any compatible fog assets in your project. If one is found, an integration is automatically compiled into the shader code.

Installing a fog asset, after importing the water shader?
A warning will be displayed in the material UI, with the option to recompile the shader

Some fog assets contain shader code that causes the water shader to throw compile warnings. These must be corrected on the author’s end, but are usually harmless. I’d be worthwhile to report them.

Fog assets

Depth-based fog effects cannot shade transparent materials, such as water. Instead, the exact same fog shading must be applied directly in the shader, similar to how the built-in Unity fog works.

Most fog assets provide general use shader functions, which the water is able to incorporate. This allows it to mirror the fog shading perfectly.

Should a fog effect renderer be disabled, it will still apply to the water, since it is handling fog on its own (based on the last provided settings passed to shaderland).

It’s possible to toggle fog shading for the water globally through script. This example script disables fog for a specific camera. You can repurpose the same functionality, where the global _WaterFogDisabled float is set to either 1 (on) or 0 (off).

SC Screen Effects

The Fog effect can be made compatible with the water’s Screen-Space Reflections if the “Render into Opaque texture” option is enabled on the Fog’s render feature.

COZY Weather 3

COZY renders its skybox and fog as scene geometry using transparent materials. Because of this, the water material’s Render Queue value will automatically be set to 3002 (default is 3000).

This will ensure the water always renders in front of the sky & clouds, but behind the fog sphere. This behaviour is inherent to how 3D transparency rendering works in Unity and is not specific to either assets.

Discrepancies between COZY’s fog and how it appears on the water are attributed to the shading function that COZY supplies and cannot be corrected in the water shader. Please use this debug shader to verify the integration.

COZY Weather 4

Unlike COZY 3, this asset no longer has a conflicting rendering architecture. Changes to material render queues are no longer required. Underwater Rendering also works as expected.

Enviro 3

Requires version 3.2.0+

Planar Reflections will not reflect Enviro’s fog. This is due to – what can be considered – a design flaw. It must be corrected in Enviro’s rendering code.

The water may appear white with this integration active, when enabling Enviro and then disabling it (or moving to a scene without Enviro). The developer must expose a boolean to shaders to indicate that it is active, unfortunately that’s still not the case.

The water will appear invisible with integration active, if going to a scene without Enviro active. It will be paired with a console warning: "Fragment Shader "Stylized Water 3/Standard" requires a buffer (SRV) "_EnviroRemovalZones" at index 1, but none provided. Skipping draw calls to avoid crashing.".

This issue stems entirely from Enviro’s shader library (now propagated into the water), so cannot be resolved on the water shader’s side.

Azure Sky

Atmospheric Height Fog

Version 3.2.0 or newer is required

Not compatible with Underwater Rendering, nor Screen-space Reflections.

Rendering assets

GigaLights

When this integration is active, the water shader takes longer than usual to compile (appear a uniform cyan color) due to increased complexity. This is normal.

Left: Off – Right: On

Other assets

Curved World 2020

Support for this integration has retired, due to changes being required to Curved World (requested November 2024!). It is no longer advertised on the store page, but can be manually integrated.

Adding the Curved World feature set to the water shader requires a few manual shader code modifications.

Start by opening the Assets/Stylized Water 3/Shaders/StylizedWater3_Standard file in a text editor, or your IDE. And uncomment (remove the leading “//”) these lines:

Followed by uncommenting the lines that read #include "Assets/Amazing Assets/Curved World/Shaders/Core/CurvedWorldTransform.cginc" in all the files in the Assets\Stylized Water 3\Shaders\Passes folder.

After which, options will appear in the material UI at the very bottom.

Dynamic Water Physics 2

This asset contains a component that integrates the Height Query System to read out the water’s height to be used in the physic simulation. Note that this strictly supports the CPU method, water effects created through Dynamic Effects won’t affect the simulation.

Please see the related documentation here: https://nwhcoding.com/DynamicWaterPhysics/manual/WaterAssets.html#stylized-water-3

Not listed?

If you’re the developer of something on the asset store, and believe an integration for a Fog/Rendering asset may be possible, please feel free to reach out.

Upon providing an invoice number, your asset will be purchased in return, and an integration can be investigated.

Yes No Suggest edit
Last updated on November 13, 2026
2 of 2 users found this section helpful
If you're familiar with this asset, please consider leaving a review!
Your support is what makes complementary updates possible!
Suggest Edit