So as far as I can tell the depth map is working… ish… in this scene. I figured at some point the block should be gray not solid black though.
The top half of the scene is rendering the standard camera, the bottom is rendering the depth pass.
I am able to get the depth pass mapped correctly to the cube in screen space, but it seems like it never is anything other then black and white (which is not what I need) and no real gradient to display the depth. I figured the depth pass already scaled the gradient and I do not need to scale it in the shader that I have seen. So I am wondering what I am doing wrong.