I’m interested in the distance values along each perspective ray. The depth buffer seems to have the orthogonal distance from the object point to the plane orthogonal to the camera “forward” direction.
As you can see there, the depth values along any vertical strip of the cube are identical. I would like the values farther from the center to be higher (because the rays are slightly longer). Is there anyway to get these values?