Stylized Water 3 - Underwater Rendering (Extension)
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.