(no commit message)
[atyndall/cits2231.git] / helper.c
index cb4278d..786297f 100644 (file)
--- a/helper.c
+++ b/helper.c
@@ -319,6 +319,11 @@ int addSceneObject(int id) {
 }
 
 void initializeLights() {
+  glMaterialfv( GL_FRONT_AND_BACK, GL_AMBIENT,   materialAmbient  );
+  glMaterialfv( GL_FRONT_AND_BACK, GL_DIFFUSE,   materialDiffuse  );
+  glMaterialfv( GL_FRONT_AND_BACK, GL_SPECULAR,  materialSpecular );
+  glMaterialf ( GL_FRONT_AND_BACK, GL_SHININESS, materialShine    );
+
   glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lightGlobalModel);
   glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);
   

UCC git Repository :: git.ucc.asn.au