10-17-2019 09:08 AM
o.depth = -UnityObjectToViewPos(v.vertex).z *_ProjectionParams.w;
That works in the editor but not on device. I've also tried using CameraDepthTexture. This only works if I blit my shader in OnRenderImage, which kills performance. I asked about replacement shaders and custom post processing in this post (https://forums.oculusvr.com/developer/discussion/81234/replacement-shader#latest) and the advice here (and elsewhere) was don't on the Quest. So I'm trying to switch to an object based effect, but I need depth info from the camera, and I can't seem to get it to work on the Quest. I'm pretty new to shaders so it's possible that I've missed something obvious. 10-17-2019 10:11 AM
10-19-2019 10:56 PM