I am trying to make a thin g-buffer using this tutorial. My rendering code is almost identical apart from the fact that I removed the specular map.
It seems that I get normal and position maps, but they seem to have a weird (transparency/rendering order?), for example, the normal map shows both the back and the front at the same time.
G-Buffer normal map:
For example, you can see the three circles and wires that are on the back of the model.
If I use glCullFace(GL_BACK); it improves slightly.
G-Buffer normal map with face culling:
G-Buffer position map:
Has anyone experienced this problem? I’m starting to feel like I’m going crazy because I’ve tried everything and I have no idea what’s wrong.