I’m having a problem using multiple cameras to render my scene. I have three cameras rendering to the HMD like this (Target Eye set to Both):
Camera 0: Depth = 0, Clear = Skybox, Mask = Nothing,
Camera 1: Depth = 1, Clear = Depth Only, Mask = Some Stuff
Camera 2: Depth = 2, Clear = Don’t Clear, Mask = Some Other Stuff
Camera 2 is for some visual FX: splitting cameras 1 & 2 like this means I can apply different post effects to them.
The problem is Camera 2 is ignoring the depth buffer and is drawing everything, regardless of whether its behind something already rendered by camera 1.
If I use this setup to render to the desktop window it works fine, so it seems to be HMD specific.