glLightf(GL_LIGHT0 + i, GL_SPOT_CUTOFF, lightObjs[i].cutoff);
glLighti(GL_LIGHT0 + i, GL_SPOT_EXPONENT, (int)lightObjs[i].exponent );
+ glEnable(GL_LIGHT0 + i);
+
// Draw light ball for light
glPushMatrix();
- glColor3f(1.0, 1.0, 1.0);
+ glColor3f(0.0, 1.0, 1.0);
glTranslatef(lightObjs[i].position[0], lightObjs[i].position[1], lightObjs[i].position[2]);
- glutSolidSphere(lightBallSize, 20, 20);
+ glutSolidSphere(lightBallSize, 20, 20);;
glPopMatrix();
- glEnable(GL_LIGHT0 + i);
}
glEnable(GL_LIGHTING);