Yeah this was something I put together in a hurry sqrt[-1]. It was written for clarity/educational purposes so there's a lot of room for optimization. Thanks for pointing out the optimizations. I'll...

When this happens it usually means that you've specified your lights - via glLight*() - before you've loaded your modelview matrix. OpenGL treats the direction of a light source just as it treats the...