[VR] UI components don't appear in both eyes

Issue #530 resolved
Adam Jimenez created an issue

Many UI components and in-flight computer displays do not appear in both eyes when using VR.

Comments (5)

  1. Xwvm Art

    Just to document some explanation from the developer channel about this issue:

    XWVM is currently using HDRP single pass mode. The problem has to do with how HDRP supplies the left/right eye data to the shaders and SRP batching. Alas, it does not use the same method to pass the data as either the legacy pipeline or URP (aka LWRP). I read through the HDRP source code but couldn’t find a way to coax it to supply the correct data. The underlying mechanism is completely different than both the “single pass double-wide” and “single-pass instanced” process.

    The shaders actually work in multipass mode, but WinMR plugin crashes in build. Unity support said that WinMR supports single pass only.

    So the “correct” solution from HDRP perspective is to use HDRP/* based shadergraph shaders. Unfortunately there is no drop-in replacement for either UI/Default or TextMesh Pro shaders, which the menus etc make heavy use of. I took a shot at writing a drop-in replacement for UI/Default but got stuck on issues with the stencil buffer semantics, which our scrollable menus do use. TextMesh Pro replacement is a huge can of worms, but it seems that the TMP author is working on a shadergraph version, which would solve that problem.

    So sorry, it may be a while before we can fix all this. 🙂

    @Jason McNew

  2. Log in to comment