Stylized Water 3 – Underwater Rendering Documentation

Stylized Water 3 - Underwater Rendering (Extension)

Stylized Water 3 - Underwater Rendering (Extension)
Version: 3.1.1
Review

6.1.COZY #

Like in Stylized Water 2, COZY’s fog shader has an integration to avoid it being visible underwater.

Though, the water shader makes use of URP’s Opaque Texture, which is a capture of the scene right before transparent materials render. This allows for effects such as refraction.

Because COZY’s sky/fog dome is transparent in nature, it cannot be refracted. As a result, the sky (as seen up through the water) appears black. This is the actual color of the void skybox behind COZY’s veneer.

Workaround

In order for COZY’s sky to render as an opaque backdrop, you can make a small modification to the shader file. Though doing so will sacrifise the Horizon module, in terms of rendering.

Open the Packages/com.distantlands.cozy.core/Runtime/Shaders/Stylized Sky (Desktop).shader file.

And replace:

"RenderType"="Transparent" "Queue"="Transparent"

with:

"RenderType"="Opaque" "Queue"="Opaque"

After which, at least the sky color will be visible through the water.

Yes No Suggest edit
Last updated on May 23, 2025
0 of 0 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