I’ve just updated to 2022.3.19 from 2022.3.13, and now I’m getting the following shader error. Nothing else has changed, and it seems to be a URP Lit issue… Any ideas?
“Metal: Error creating pipeline state (Universal Render Pipeline/Lit): Fragment input(s) user(TEXCOORD1) mismatching vertex shader output type(s) or not written by vertex shader
(null)”
Did anyone figure this out? I have a similar error with the URP Terrain Lit shader:
Metal: Error creating pipeline state (Universal Render Pipeline/Terrain/Lit): Fragment input(s) user(TEXCOORD3),user(TEXCOORD4),user(TEXCOORD5) mismatching vertex shader output type(s) or not written by vertex
The thing is, it only happens in this project when the terrain are included in an addressable build and I attempt to load them via the Addressables pipeline.
If I just drag the terrain into a scene and make a build with that scene, everything works fine.
I also created a new project and tried an addressable build there with the terrain, and it works fine, so it doesn’t seem to be a Unity version issue or URP version issue, since the two projects are using the same Unity Editor and URP package. I tried importing the URP assets from the faulty project to the working project and the working project still works fine, so it doesn’t seem to be the pipeline settings.
I’m scratching my head understanding what is going on. My only guess is some issue with a 3rd party asset, or some other project setting that is screwing things up, but for the latter I have tried making sure my two projects use the same settings for shader stripping and variant stuff.
For the addressable build I’ve dragged the Terrain Lit material, plus all terrain related shader files, into an Addressable Group.
Because this project is quite large and the issue only seems to happen there, I don’t think I can file a bug report as I would need to submit the entire 100+ GB project.
I would really just love a direction for how I can figure out what’s going on. Where should I look?