How to render a DepthTexture from specified camera into a RenderTexture and use it in a shader?

Hi. Tried to create renderTexture with type set to Depth and depth buffer set to 24 bit, then creating camera, disabling it, seting renderTexture as camera’s target texture and then calling Render() and RenderWithShader(Shader.Find(“Hidden/Camera-DepthTexture”),null) and RenderWithShader(Shader.Find(“Hidden/Camera-DepthNormalTexture”),null), but still cant get it right whe passing it to shader using SetTexture. Can someone post an example of rendering depth from non-main camera to render texture and getting depth from it in image efect shader? Thanks!

That had me troubled too, but it is possible:
Using depth from rendertarget in shader
The goal there was to not only use depth, but to use both the color and the depth as inputs for another shader.