Lesson 4: Lighting

  • Make the 'l' key toggle whether lighting is on. (You'll need to check whether key == 'l'.)
  • Using timers, but without adding another timer, add a third light, green in color, that moves back and forth between (-6, 0, 0) and (6, 0, 0).

Next is "Lesson 5: Textures".