Lesson 12: Alpha Blending

  • Rather than sorting the faces from back to front, draw them in the following order: top, bottom, left, right, front, back. Notice that the scene looks messed up; the transparency doesn't look right.
  • Give the top and bottom faces a different alpha value than the other faces.
  • Make the 'a' key toggle whether alpha blending is on.

Next is "Lesson 13: Particle Systems".