From: Ash Tyndall Date: Fri, 21 Oct 2011 07:58:24 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a850337f703fb7263f851672158e05d30cfb2b77;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 0e5ae12..2141f14 100644 --- a/scene.c +++ b/scene.c @@ -406,23 +406,24 @@ void init() { glLightfv(GL_LIGHT0, GL_SPECULAR, specular0); glLightfv(GL_LIGHT0, GL_SPOT_DIRECTION, direction0); - glLightf(GL_LIGHT0, GL_SPOT_CUTOFF, 60.0); + glLightf(GL_LIGHT0, GL_SPOT_CUTOFF, 90.0); + glLightf(GL_LIGHT0, GL_SPOT_EXPONENT, 1); glLightfv(GL_LIGHT1, GL_AMBIENT, ambient1); glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse1); glLightfv(GL_LIGHT1, GL_SPECULAR, specular1); glLightfv(GL_LIGHT1, GL_SPOT_DIRECTION, direction1); - glLightf(GL_LIGHT1, GL_SPOT_CUTOFF, 60.0); + glLightf(GL_LIGHT1, GL_SPOT_CUTOFF, 90.0); glLightModelfv(GL_LIGHT_MODEL_AMBIENT, glightmodel); glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR); - glMaterialfv(GL_FRONT, GL_AMBIENT, ambient); - glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse); - glMaterialfv(GL_FRONT, GL_SPECULAR, specular); - glMaterialfv(GL_FRONT, GL_EMISSION, emission); - glMaterialf(GL_FRONT, GL_SHININESS, shine); + //glMaterialfv(GL_FRONT, GL_AMBIENT, ambient); + //glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse); + //glMaterialfv(GL_FRONT, GL_SPECULAR, specular); + //glMaterialfv(GL_FRONT, GL_EMISSION, emission); + //glMaterialf(GL_FRONT, GL_SHININESS, shine); glEnable(GL_LIGHT0); glEnable(GL_LIGHT1);