paroj / gltut

Learning Modern 3D Graphics Programming
https://paroj.github.io/gltut/
MIT License
1.57k stars 377 forks source link

Wrong color assignment in Tutorial 05 source codes #93

Open paroj opened 9 years ago

paroj commented 9 years ago

Originally reported by: Sand3r (Bitbucket: Sand3r, GitHub: Sand3r)


In all .cpp files coming from Tutorial 05, the assignment of colors for blue and green is incorrect, and should be swapped.

Side note: It may seem to be minor bug, but it greatly confused me when I was playing with the code to gain better understanding of indexed buffering.

#define GREEN_COLOR 0.75f, 0.75f, 1.0f, 1.0f
#define BLUE_COLOR  0.0f, 0.5f, 0.0f, 1.0f