Issues with _CameraDepthTexture in Post Processing

Hi there,

I’ve a cutting shader which cuts my object on a specific plane. This works perfectly in normal shader.

Now I have a Posteffect which should show only the outlines and bodyedges of this. The problem is that _CameraDepthTexture and _CameraDepthNormalsTexture shows the hole body not the cutted one.

6369834--709005--upload_2020-10-1_11-56-59.png

So I tried to override the Hidden/Internal-DepthNormalsTexture shader with my cutted one. The shader itself works when I do Shaderreplacement on a camera. But the _CameraDepthTexture is still the hole object.

Any idea?

I use Unity 2019.3.13f1
Standard Shader (no HDRP / URP)
Post Processing 2.3.0

I got it to work!
I had to set my custom shader in the Depth Normals shader under graphics settings…