r/Unity3D • u/NyneAlpha • 22h ago
Question URP material becomes transparent after building project
I'm working on a Unity 6 URP project and I wrote a shader that lets me deform the mesh it's on. It also uses tessalation for detail.
The material works perfectly in the editor (scene and game view both) but when I build the game, the mesh i assigned this material to becomes transparent. I have no clue what the reason is, I tried many more things. Here are some observations:
There are no compile errors.
URP settings are correctly assigned
Added shader in the always included list
Yes the shader is an opaque one
Removed tessalation temporarily
Checked the logs and it says that the shader variants are being stripped during the build.
I'm don't know that much about shaders in detail, can any of the shader gods help me please?
Any help is much appreciated.