Affect only one mesh with depth fade material

Hey there.

I have two meshes. One structure and one sphere.
I want to light up the struct where the sphere is intersecting with it.
For that, i’m using a depth fade material and it’s working, but it’s affecting everything else (other meshes).

Is there a way to ignore meshes or only apply the depth fade to a specific mesh?



Thanks

Solved it with custom render pass.