New answers tagged opengl
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.
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.
Top 50 recent answers are included
Related Tags
opengl × 4263c++ × 995
glsl × 589
shaders × 433
java × 337
textures × 337
lwjgl × 245
rendering × 225
3d × 220
graphics × 176
directx × 146
2d × 139
matrix × 135
mathematics × 134
opengl-es × 129
lighting × 127
vbo × 126
camera × 121
graphics-programming × 109
android × 101
libgdx × 95
sdl × 93
rotation × 91
glm × 90
opengl-es2 × 88