Search Unity

Question How to add support for Single Pass Instanced Stereo Rendering Mode in my custom HDRP/Lit shader?

Discussion in 'VR' started by zim22, May 9, 2020.

  1. zim22

    zim22

    Joined:
    Feb 25, 2018
    Posts:
    44
    I have created a hair shader taking as a base source file from HDRP/Lit shader.
    But it displays in VR hair correctly only in Multi Pass mode. I have found a Unity documentation how to change custom shaders to support for Single Pass Instanced mode, but documentation is outdated and is written for old shaders (CGPROGRAM)...
    DOC: https://docs.unity3d.com/2019.3/Documentation/Manual/SinglePassInstancing.html
     
  2. zim22

    zim22

    Joined:
    Feb 25, 2018
    Posts:
    44
    Now it works.
    After I installed new SteamVr XR plugin and then deleted it...