Search Unity

Resolved Shader Graph + Single pass Instanced - Not Working

Discussion in 'Shader Graph' started by Dapeos, Nov 15, 2019.

  1. Dapeos

    Dapeos

    Joined:
    Jun 27, 2013
    Posts:
    28
    Hi all,
    I was getting a shader error of undeclared unity_stereoEyeIndex; I pulled the latest SRP branch from git and was able to resolve that error.

    But now when I use a Shader Graph with Single Pass Instanced set as my Stereo Rendering Mode I end up with the Mesh Repeated and offset on the left eye and the mesh is not rendered to the right eye. Its like what was intended for the right eye(right side of the render texture) was output to the left.

    Am I missing a setting or something? Are Shader Graphs currently not supported when using Single Pass Instanced? Is there a way to make it work?

    Thanks,
     
  2. Dapeos

    Dapeos

    Joined:
    Jun 27, 2013
    Posts:
    28
    Adding the Tracked Pose Drive to the camera seems to have fixed it. Was playing with the Shader Graph in a test scene and didn't notice I had a vanilla camera.