Can't use glGetTexImage to read a depth map texture
问题 I've successfully created a frame buffer object and created a texture containing the depth map of my scene. I know I'm doing this correctly since I apply my texture to a rectangle and it looks just fine : Now I'd like to read the values from the texture I've created in my main program and not inside the shaders. Looking into it I found out about two functions, namely: glGetTexImage() and glReadPixels(). Since I'm quite new to openGL, the documentation about these brings more questions than