title: glDrawElements and flat shading
body: <p>Is it possible to achieve flat shading in OpenGL when using glDrawElements to draw objects, and if so how? The ideal way would be to calculate a normal for each triangle only once, if possible. </p>
  
  <p>The solution must only use the programmable pipeline (core profile).</p>