New answers tagged

0 votes

2D Batching and correct draw order

Disable depth testing for the health boxes. No matter when they are drawn they are always on top.
Casey's user avatar
  • 2,000
2 votes
Accepted

Front faces are transparent after setting glEnable(GL_DEPTH_FUNC) and glDepthTest(GL_LEQUAL)

I was doing my matrix multiplications in the wrong order :/ its proj * view * model * vec4(pos , 1.0); for what I wanted.
YamMan's user avatar
  • 49

Top 50 recent answers are included