I tried your tutorial, but the depth based part wasn't working. It was neccessary to set the camera depthTextureMode to DepthTextureMode.Depth before I got good results.
NB: You can probably use DepthTextureMode.DepthNormals to avoid needing a secondary camera.
I tried your tutorial, but the depth based part wasn't working. It was neccessary to set the camera depthTextureMode to
DepthTextureMode.Depthbefore I got good results.NB: You can probably use
DepthTextureMode.DepthNormalsto avoid needing a secondary camera.