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

diff --git a/scene.c b/scene.c
index 2bf72a3..08e78d8 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -410,6 +410,7 @@ void init() {
   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

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