Using Custom depht for only one material

Hello everyones,
I would like to use the custom depht pass to cull triangles from a transparent mesh but I have an Outline post process material on my scene using the custom depht pass to detect edges. How can I disable the outline for that mesh only ?

Thanks for your help!

Hi, use custom stencil to sort the custom depths.
Here’s a good example.

To use custom stencil ,make sure you switch the “Custom Depth-Stencil Pass” to “Enabled with Stencil” in your project settings.