(no commit message)
authorAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 07:58:24 +0000 (15:58 +0800)
committerAsh Tyndall <[email protected]>
Fri, 21 Oct 2011 07:58:24 +0000 (15:58 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 0e5ae12..2141f14 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -406,23 +406,24 @@ void init() {
   glLightfv(GL_LIGHT0, GL_SPECULAR, specular0);\r
   glLightfv(GL_LIGHT0, GL_SPOT_DIRECTION, direction0);\r
 \r
-  glLightf(GL_LIGHT0, GL_SPOT_CUTOFF, 60.0);\r
+  glLightf(GL_LIGHT0, GL_SPOT_CUTOFF, 90.0);\r
+  glLightf(GL_LIGHT0, GL_SPOT_EXPONENT, 1);\r
 \r
   glLightfv(GL_LIGHT1, GL_AMBIENT, ambient1);\r
   glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse1);\r
   glLightfv(GL_LIGHT1, GL_SPECULAR, specular1);\r
   glLightfv(GL_LIGHT1, GL_SPOT_DIRECTION, direction1);\r
 \r
-  glLightf(GL_LIGHT1, GL_SPOT_CUTOFF, 60.0);\r
+  glLightf(GL_LIGHT1, GL_SPOT_CUTOFF, 90.0);\r
 \r
   glLightModelfv(GL_LIGHT_MODEL_AMBIENT, glightmodel);\r
   glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);\r
 \r
-  glMaterialfv(GL_FRONT, GL_AMBIENT, ambient);\r
-  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse);\r
-  glMaterialfv(GL_FRONT, GL_SPECULAR, specular);\r
-  glMaterialfv(GL_FRONT, GL_EMISSION, emission);\r
-  glMaterialf(GL_FRONT, GL_SHININESS, shine);\r
+  //glMaterialfv(GL_FRONT, GL_AMBIENT, ambient);\r
+  //glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse);\r
+  //glMaterialfv(GL_FRONT, GL_SPECULAR, specular);\r
+  //glMaterialfv(GL_FRONT, GL_EMISSION, emission);\r
+  //glMaterialf(GL_FRONT, GL_SHININESS, shine);\r
 \r
   glEnable(GL_LIGHT0);\r
   glEnable(GL_LIGHT1);\r

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