Open HoloMoto opened 1 year ago
Thank you for reporting this @HoloMoto. We likely need to key off of the UNITY_UV_STARTS_AT_TOP
keyword like so: https://github.com/microsoft/MixedReality-GraphicsTools-Unity/blob/9f4e35db81b680060d70609e61a47e0efddba1de/com.microsoft.mrtk.graphicstools.unity/Runtime/Shaders/GraphicsToolsStandardProgram.hlsl#L276
Looked at this briefly, it's not as simple as UNITY_UV_STARTS_AT_TOP. Something else is going on for HoloLens (works fine on Quest 2).
Describe the bug
While playing with the new feature while working on other MRGT issues, I encountered a problem with the screen of the magnifier function flipping upside down on the actual HoloLens2 device.
https://youtu.be/C5aYusFA_tM
I was able to get it working on the actual device by inverting the Y component of the UV in Graphics Tools/Magnifier.
https://youtu.be/-tDxe4X7AnQ
I have previously encountered the same UV upside down phenomenon when using CameraOpaqueTexture in a URP environment to create my own lightweight Bloom post effect. This only occurred on the actual HoloLens device, not on the Editor, and seems to be the same as this time.
Maybe there is something going on with the HoloLens rendering or deploying from Untiy, but I don't understand it and am very curious.
To reproduce
I deployed to HoloLens2 in Unity2021.3.5f1 with MRTKv2.8.2 using OpenXR platform.
Expected behavior
It needs to be rendered correctly in HoloLens as well as VR without tampering with the code itself.
Screenshots
Please refer to the above Youtube video.
Your setup (please complete the following information)
Unity Version 2021.3.5f1 (URP) Graphics Tools Version 0.5.0(Introduced from MixedRealityFeatureTools)
Target platform (please complete the following information)
Only HoloLens 2
Additional context
I would like to understand the cause of the problem as I am curious about the causes in this area.