Hi,
I’m trying to get the scene depth to work properly on Meta Quest.
I’m using the built-in function SampleSceneDepth(uv);
I calculate the UV using the also build-in function ComputeScreenPos(TransformObjectToHClip(v.vertex.xyz));
While it works fine on PC VR, it looks alright ok on the quest as well, but as soon as an object gets in front of the plane where the scene depth is used, that object gets doubled in one of the eyes.
See bug on the bottom planes here:
The top planes are working fine, but are made using shadergraph instead of HLSL.
They are also using SampleSceneDepth() in shadergraph, but I cannot replicate the way they are calculating the UVs.
Anyone knows how to do that?
Thanks!