Depth buffer Access and save it to image

Hi!

I have such issue:
I need to get a depth buffer (only depth, without color) and render (or save) it to an image.

Where i can get access to depth data in convenient way?
In engine source? Or it can be made more simple?

Scene Capture 2D can be set to render scene depth into either alpha or Red channel of a render target. Then you can navigate to the render target in the content browser, right click and select “create static texture” to save a static image.

1 Like