microsoft / microsoft/MixedReality-GraphicsTools-Unity

MRTK URP support for Unity 2021.3.29+ (URP 12.1.12+)

Open
#189 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
209
Forks
49
PR merge metrics
No merged PRs in 30d

Description

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)

  • Unity Versions
    2021.3.29f1
    2020.3.42
  • MRTK Version
    MRTK2 2.8.3
    MRKT3 3.0.0-pre18

Target platform

  • HoloLens 2, UWP

Additional context

Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the invisible-material behavior in a Unity 2021.3.29f1 project using URP 12.1.12+ and the MRTK Standard shader. Compare the shader and material behavior with Unity 2020.3.42, including the MRTK Upgrade URP Materials tool for MRTK 2. Done means the shader displays its configured color in previews and on a mesh for both MRTK 2 and MRTK 3.

Written by the indexing model from the issue text.

Assessment

Tech stack
unity
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.