From what I can tell Pixel depth offset pushes the depth back perpendicularly to the camera near/far plane. How can I instead push it back along the pixel vector? I basically just need to know the angle to the pixel from the camera origin.
As an example, if I have a 90 degree FOV camera and am wanting to push world space depth back by 10cm on the leftmost (centered vertically) pixel, the angle I need is 45 degrees, and I would feed the pixel depth offset pin 10cmcos(45deg) = 7.07cm, but if I’m drawing the pixel in the center, I want to instead feed it 10cmcos(0deg) = 10cm. Is there an easy way to get the correct angle to feed to cosine? The camera vector node is similar to what I need, but it is in world space.