When rendering this cube, I'm using the moderngl DEPTH_TEST to properly draw in the faces at the correct depth, which works fine as shown:
However, I want to make the cube transparent. After giving it a slightly transparent texture, it renders like this:
For some reason, the part of the cube behind the front face is ignored, causing it just to be tinted red.
This is what it looks like when spun:
Some angles it works, others it doesn't.
When I disable the depth test, everything is properly rendered but in the wrong order. Is there anyway to fix this? (Using python moderngl)