I recently updated from 2021 to 2022, and my custom shaders no longer work. I receive this error.
Shader error in 'Custom/Toon/Toon Water': Invalid conditional expression. at .../Library/PackageCache/com.unity.render-pipelines.universal@14.0.5/ShaderLibrary/Shadows.hlsl(270)
The offending line of code in Shadows.hlsl looks like this:
It looks like a syntax error since #if is used instead of #ifdef - however, there surely can’t be a syntax error in the official URP code?
I’ve seen a few threads that seem to suggest the shader preprocessor syntax may have changed - am I missing something here?