Hi,
I’m working on a project using OpenGL 3.3.
Is there a way to render a scene and keep all pixel data?
By this I mean I want to keep the Z position of the pixel and colour information in a buffer so I can use it later.
From what I understand by default OpenGL keeps the topmost colour and z coordinate, but I need the colour and z coordinate of every pixel that has been rendered in the scene, even if later in the rendering process it is occluded.
Thank You