boskee / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
207 stars 33 forks source link

Change GL_QUADS to GL_TRIANGLES #55

Closed boskee closed 11 years ago

boskee commented 11 years ago

We should render blocks using GL_TRIANGLES instead of GL_QUADS, because:

  1. With GL_TRIANGLES we will be able to render flowers, potatoes, carrots etc. correctly (their textures should be drawn diagonally inside the block)
  2. GL_QUADS is deprecated in OpenGL 3
BertrandBordage commented 11 years ago

:+1:

BertrandBordage commented 11 years ago

1 is not relevant. See ad69c1adf428a7279e46f3bd896c2311c93032ba. 2 is relevant, but causes problems with the "focused cube".