Before version 6000.0.24, the water shader worked in Forward mode but not in Forward+ mode. Now, in version 6000.0.32 and earlier, the water shader doesn’t work even in Forward mode. In the 2022 version, there were no issues with the shader at all. The depth effect and color blending, as well as the foam overlay, are not working, although refraction and waves are present. I have attached the shader. What needs to be fixed to make it work in Unity 6? Shader can be downloaded here Dropbox
Hi
how is it supposed to look like? For me it looks identical in 6000.0.23f1 and 6000.0.25f1.
Is maybe your URP configuration different?
Hi
I see that you have a foam effect on your screenshots, but for some reason I don’t have it anymore. In your example, I don’t see any mixing of water colors depending on the depth. I didn’t change anything in the URP settings. Changing the rendering mode from Forward+ to Forward helped on older subversions of the Unity 6, but now it does not work. How can I find a solution for such problems?
I tried to create a new project in 6000.0.32, added a material to a plane and a simple cube, there is foam around the cube (in my main project the foam effect disappeared), and the color mixing does not work, only the deep water color is displayed.
Update. I decided to take the URP settings from a clean project, now the shader works with foam and depth, thanks for the help. Changed back to Forward+.
Great!
Maybe the Depth and Opaque texture was not checked when the effect did not work? I think the effect relies on it.
Hi
I changed Rendering Path to Forward+, Depth Priming Mode from Auto to Disabled, Depth Texture Mode from After Transparents to After Opaques.
Depth Texture and Opaque Texture were already enabled.