OpenGL screencast 12 - Lighting and Material Part 1 - Setup and Normals
In this screencast (OpenGL video tutorial), I discuss using lighting in OpenGL. I discuss setting up lighting, as well as how normals work. Additionally, I mention how to determine if a user is pressing a modifier such as shift.
OpenGL commands used in this screencast: glDisable(), glEnable(), glColorMaterial(), glutGetModifiers(), glLightfv(), glNormal3f(),
Different OpenGL parameters used: GL_LIGHTING, GL_NORMALIZE, GL_COLOR_MATERIAL, GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, GL_LIGHT0, GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GLUT_ACTIVE_SHIFT
The code is available to download on Github