HDRP single-pass instanced rendering not working

Hello, I have gone through potential fixes on other posts in this forum, but I can't seem to get single-pass instanced rendering working within HDRP VR. I tried deleting the Library folder and reinstalling Shapes, but no dice. Is this something anyone else has experienced?


FYI, I was able to do a quick fix (for my use-case at least) to make single pass stereo work (I hope). The problem is indeed that the unity_StereoMatrixInvV[1] is always 0. So in my case it seems that this matrix (unity_StereoMatrixInvV[0]) is always an identity matrix. I therefore added the following hack at the start of the Shapes Math.cginc file:
// Shapes © Freya Holmér - <a href="https://twitter.com/FreyaHolmer/" class="redactor-autoparser-object">https://twitter.com/FreyaHolmer/</a> // Website & Documentation - <a href="https://acegikmo.com/shapes/" class="redactor-autoparser-object">https://acegikmo.com/shapes/</a> #define SHAPES_INCLUDED_MATH // Hack for empty unity_StereoMatrixInvV[1] // Just use the eye 0 matrix (note this could break on more exotic viewMatrices) #if defined(USING_STEREO_MATRICES) // Enforce eye 0 for this matrix #define UNITY_MATRIX_I_V unity_StereoMatrixInvV[0] #endif
Hope this helps!
Hey @Freya, thanks for the amazing work on this asset, great work. It must be a nightmare to keep up with all the different pipelines and VR stuff...thanks for sticking to it!