Standard water shader not working anymore.

Hi people

I’m a newbe here in Unity just turned to realtime graphics. Now I have a problem I am hoping somebody can help me with. I’m using the water daytime shader to make water in a pool for realtime visualisation. But yesterday after updating Unity from the shader stopped working now displaying nothing but a grey plane. I tried going back to a previous version but the shader gives me nothing but grey feedback. Does anyone have a solution for this, it would be greatly appreciated.

It is very likely that you water assets needs upgrade. Which package are u using for water or is it your custom? Also does the water shader drops any errors?

Hi, thanks for your reply. As for today the material appears to be pink and the console tells me this:

Shader error in ‘FX/Water4’: failed to open source file: ‘UnityShaderUtilities.cginc’ at line 384 (on d3d11)
and another one at line 29.

Any idea what this means?

It means shader can’t include this header ‘UnityShaderUtilities.cginc’, one of the possible reasons is that it can’t find it (As far as I know we haven’t remove it from our header library, so it is indeed strange).
Could you make a bug report and drop the number of it in here, it would be much faster for me to investigate the project. (Or upload shader with all dependencies)

1 Like