-GLfloat ambient[] = {0.2, 0.2, 0.2, 1.0};\r
-GLfloat diffuse[] = {1.0, 0.8, 0.0, 1.0};\r
-GLfloat specular[] = {1.0, 1.0, 1.0, 1.0};\r
-GLfloat shine = 100.0;\r
-glMaterialfv(GL_FRONT, GL_AMBIENT, ambient);\r
-glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse);\r
-glMaterialfv(GL_FRONT, GL_SPECULAR, specular);\r
-glMaterialf(GL_FRONT, GL_SHININESS, shine);\r
+ glLightf(GL_LIGHT0, GL_SPOT_CUTOFF, 90.0);\r
+\r
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, glightmodel);\r