unity 2022 urp shader keeps failing to compile on build
Shader error in 'Custom/Water': 'AppBuilderGetPos' : cannot map expression to pixel shader instruction set at line 87. That's the error in the console when I build for Windows in Unity 2022.3.14f1 with URP 14.0.9. The shader works fine in the editor and in the preview but the player build fails. I copy-pasted a tutorial shader that uses a vertex-to-fragment struct and I think something about the interpolator count is over the limit. Any idea what actually causes this and how to debug which line is the problem? I've never really written shader code beyond editing existing ones.
4 replies