Is there a way to use depth buffers with landscape?

I’ve been poking about UE post-processing for a few days and I’m at a point where I’d like to fade out elements of my post-process effect as they get further from the camera.

My main objects at the moment is a landscape. I’m not seeing a way of getting the pixeldepth from my scene texture. I don’t appeat to be able to apply CustomDepth to a landscape either.

I used z-buffers in HLSL a lot prior to adopting UE, I’m very keen to get them going again.

Does anyone have any advice?

Hello,

We have not heard from you in a while and for tracking purposes we have marked this answer as resolved. If you still have a question relating to this post, or are still experiencing this issue, please create a new post on the AnswerHub and we will be glad to assist you!

Thank you.