Open paulio opened 1 year ago
Thank you @paulio for the bug report, we will try and reproduce this. One quick question, do you see any shader compilation issues in the Standard shader's inspector? They would appear roughly here:
No, the only thing I noticed was something about it not being batch compatible which was further down that inspector
Awesome, good to know. Also if you clone this repository and open the Unity project do you see the same issue? You can show the samples via Window > Graphics Tools > Show Samples
in this repo's sample project.
I can confirm the repro works... 0.6.1
vs. Feature Tool Install Graphics Tools v0.5.12
Now to understand why, and see if the fix is available (or can be applied to) MRTK2 too.
Interesting! @shaynie you are more knowledgeable about the feature tool than I am - do you have any ideas?
I compared the shaders and they seem exactly the same, apart from, maybe the dependency on the version of URP.
Aha, it's something to do with the URP Pipeline Asset Renderer. I copied UniversalRenderPipelineAsset & UniversalRenderPipelineAsset_Render and set them as the default in Settings URP and Settings Quality. This seems to have fixed the issue.
Found it...
Change needed is from Auto to Disabled
Great catch @paulio! Sounds like we need to add extra passes to the shader to support this: https://forum.unity.com/threads/custom-shaders-make-mesh-invisible-in-urp-2021-3-22f1-solved.1422327/
MRTK URP support for Unity 2021 (URP 12.1.12+)
Installing MRTK in a Unity 2021 project that is using URP incorrectly produces invisible materials. When the MRTK Standard opaque shader is applied the material is incorrectly invisible. The problem is not seen in Unity 2020 projects. The problem occurs for both MRTK v2 and v3.
To reproduce
Steps to reproduce the behavior:
Expected behavior
The Shader should display the color as stipulated in the shader settings
Screenshots
Expected (from Unity 2020)![image](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/assets/235897/0dc34fa9-2d95-4f2b-afd5-86a55fdaf845)
Unity 2021 MRTK 2![image](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/assets/235897/6539f5be-7860-4666-b813-965cca0402b8)
MRTK 3![image](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/assets/235897/a9496117-920a-4665-a391-acba537da31b)
Your setup (please complete the following information)
Target platform
Additional context
Add any other context about the problem here.