Mist shader

I’ve been working on a ground mist shader and i would like some advice on how to improve it.
The main thing that worries me is how it looks when it crosses with other actors. As you can see in the picture it does not look good when it touches the wall.
Is there a way to make it fade when it touches something?
The shader is applied to a big plane that covers the whole scene, with repeated UVs.


DepthFade is what you need.

Thanks! looks much better now!