Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Hdrp 12.1.2 + XR + singlepass instanced + custom pass volume + DrawProcedural (only in left eye)

Discussion in 'High Definition Render Pipeline' started by mgear, Nov 1, 2022.

  1. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    Should that combination work?
    "Hdrp 12.1.2 + XR + SinglePass instanced + Custom pass volume + DrawProcedural"

    I'm getting image on the left eye only,
    shader should be ready for single pass instanced (have added those parts).

    Just wondering if there is limitation/bug in this hdrp version,
    or if CustomPass+DrawProcedural needs something extra to work with singlepass instanced vr?

    (multipass works)
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    well nevermind it works, was missing 2 lines from these:

    Code (CSharp):
    1. UNITY_SETUP_INSTANCE_ID(input[0]);
    2. UNITY_SETUP_INSTANCE_ID(input[1]);
    3. UNITY_SETUP_INSTANCE_ID(input[2]);

    and apparently this other limitation is for these methods only:
    https://docs.unity3d.com/2020.2/Documentation/Manual/SinglePassStereoRenderingHoloLens.html