MixedRealityToolkit / MixedRealityToolkit-Unity

This repository holds the third generation of the Mixed Reality Toolkit for Unity. The latest version of the MRTK can be found here.
BSD 3-Clause "New" or "Revised" License
411 stars 111 forks source link

[BUG] MRTK URP support for Unity 2021 (URP 12.1.12+) #449

Closed paulio closed 1 year ago

paulio commented 1 year ago

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:

  1. Create an Unity 2021 project using the URP (3D) Template
  2. Using the MRTK feature tool add the standard set of assets and the Shader examples.
  3. Use the MRTK Upgrade URP Materials tool menu (if using v2)
  4. Once the install is complete view the Shader Material examples or create a new opaque material using the MRTK Standard shader
  5. Note that you cannot see the resulting material in either the preview or when the material is applied to a mesh (e.g. a simple cube)

Expected behavior

The Shader should display the color as stipulated in the shader settings

Screenshots

Expected (from Unity 2020) image

Unity 2021 MRTK 2 image

MRTK 3 image

Your setup (please complete the following information)

Target platform (please complete the following information)

Additional context

Add any other context about the problem here.

AMollis commented 1 year ago

@paulio can you please open this bug against the Mixed Reality Graphics Tools.

https://github.com/microsoft/MixedReality-GraphicsTools-Unity

This Graphic Tools is currently a stand-alone project still maintained by the Microsoft organization.

paulio commented 1 year ago

Thanks, FYI https://github.com/microsoft/MixedReality-GraphicsTools-Unity/issues/189