Possible to get SceneDepth from main camera?

I know I can get SceneDepth information from SceneCapture but I’m looking to skip that and just use the already existing SceneDepth of what is being rendered off the main camera.

I’ve used UnrealClient.cpp ReadPixels to get the Color off the main camera but the alpha is just always 1.0 and IDK how to get it to fetch just scene depth.

The SceneCaptureComponent seem to use a material function .usf file to grab SceneDepth but is there a way to do this with ReadPixels?

Hi, I have a similar problem, do you have any solution?