Hi!
I’m desperately looking for a mirror effect that works in VR.
So far I’ve been using Mirror Effect from the Unity Asset Store (which renders the mirror directly into the back buffer instead of using a render target), but native VR integration in Unity broke this because any camera rendering to the HMD is subject to head tracking (even if I reset the camera position in OnPreRender()).
After getting nowhere with several other assets, I tried the Vive Stereo Rendering toolkit. This didn’t compile in Unity 5.6.2 at first, but I changed the native SteamVR calls into their Unity VR integration equivalents as best I could and came up with a mostly working mirror (see attached .zip file).
However, there’s one quirk I couldn’t solve: I’m querying the eyes via GetLocalPosition() and GetLocalRotation(). The left eye is perfect, but the right eye only is at the correct position when I’m looking straight ahead but will get an offset as I rotate my head.
Anyone willing to take a look? Or is there a mirror that just works in VR somewhere?