A custom shader I made is breaking on build.
Here's what it's supposed to look like:
Yet, on the build it looks like this. The surface is completely flat, all details are gone, and sometimes the surface goes from nearly completely opaque to nearly transparent depending on the angle...
Any idea what might be causing this? I tried adding it to the Always include shaders, tried generating shader includes, did a few tweaks to the shader and can't for the life of me figure out what's wrong.
There is this "Shader warning in 'Shader Graphs/Water2': 'UnityMetaVertexPosition': implicit truncation of vector type at" warning, not sure if that's causing it.
Here's the shader graph file too, if someone would be willing to have a look. Not sure if it's a setting in the shader or editor setting.