Hello guys!
I have a scene rendered into a FrameBuffer (for post processing) and a PerspectiveCamera.
What is the easiest way to get the depth value of the pixel from the middle of the FrameBuffer?
This did not work:
camera.unproject(Vector3 coords)
I need a function like that:
public float getZ(int pixelX,int pixelY,FrameBuffer frameBuffer)
Is it possible? If yes, how can I do that?
That’d be great if you include any code