Stylized Water 2 documentation

Stylized Water 2

Stylized Water 2
Author: jonathan
Version: 1.1.4
Dated: 22 Sep 2020

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

(In older versions this is Help->StylizedWater 2)

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. These 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 be disabled, it will still apply to the water, since it is handling fog on its own. 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.

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

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.4.2 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 August 14, 2021
0 of 0 users found this section helpful
Suggest Edit