Is there a way to make a true pixel / scene depth?

I’m trying to make a special type of vision, the intention is to have the characters vision only be black and white, and the visibility of objects to be based on linear distance, at the closest distance it will appear white, farther away it will appear gray, and at the end of the distance it will be true black, so you can’t distinguish anything beyond maybe 10 feet

I’ve used scene depth and pixel depth to limited success

To explain what I’m facing:

Scene depth and pixel depth are camera based, rather than world position based, and this creates problems when looking around because things with fade in and out in the center of the screen because the edges of the screen read a different depth

If I haven’t worded my question well enough I’d be happy to answer further questions

Also, I did find this reddit post which does illustrate my issue a little better, but I’m not able to understand what they’re talking about enough to do it myself

https://www.reddit.com/r/unrealengine/comments/4ni4ea/fixing_pixeldepth_to_provide_actual_distances/


actually I’ve realized the video from the post doesn’t accurately represent my issue, here is a better representation:

This is my current setup looking left to right,

When I look to the left.

When I look to the right.

and when I look directly at my rectangle I can’t see it, but as shown above and below if I look to the side I can see it in the sides of my vision, this is the only issue I have with scene and pixel depth, and I’m really hoping for a solution to this.

also scene depth is bugged and doesn’t work correctly in the editor as show below

Edit: the deleted posts below were all the separate screen shots because I didn’t have the permission to put multiple into one post until now.