Stylized Water 2 documentation

Stylized Water 2

Stylized Water 2
Version: 1.3.1
Review

4.7.Third party integrations #

Installation for third party assets can be activated through the asset window, accessible through the Window → Stylized Water 2 → Hub menu

Activating an integration modifies the shader file. Updating the asset will revert this, requiring the integration to be activated again

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 provided settings passed to shaderland).

As of version 1.1.2, 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 Post Effects

On the Fog render feature, the “Skip Transparents” checkbox must be set for this to work correctly.

COZY Weather

COZY renders its skybox and fog as scene geometry using transparent materials. Because of this, the water material’s Render Queue value must be set to 3001 (default is 3000). You can find this option at the very bottom in the material UI.

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.

This integration is unfortunately not compatible with the Underwater Rendering extension!

Enviro

Note: Without Enviro’s fog render feature active, the water will turn white, since no fog settings will be passed on.

With the Enviro fog integration active, the water shader will throw a number of warnings. These unfortunately stem from Enviro’s shader libraries. They’re otherwise harmless

Azure Sky

With the Azure fog integration active, the water shader will throw a number of warnings. These unfortunately stem from Azure’s shader libraries. They’re otherwise harmless

Atmospheric Height Fog

This integration is unfortunately not compatible with the Underwater Rendering extension!

Buto | Volumetric Fog and Lighting

Other assets

Curved World 2020

This has to be activated through the “Activator” tab in the Curved World window. It should point to the Assets\Stylized Water 2\Shaders folder before hitting the “Activate” button.

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

Note that the Underwater Rendering extension is not compatible with this asset.

Dynamic Water Physics 2

If present in the project, a button will appear that unlocks the StylizedWaterDataProvider component.

A minimum of version 2.5.1 is required

Buoyancy only works for flat water bodies, such as lakes and oceans. A curved mesh such as a river or planets is not supported. It’s unlikely support for this will appear, due to the technical complexity involved.

For further details, see the Buoyancy section…

Yes No Suggest edit
Last updated on February 8, 2023
2 of 3 users found this section helpful
Suggest Edit