git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f171476
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 07:21:43 +0000
(15:21 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 07:21:43 +0000
(15:21 +0800)
helper.c
patch
|
blob
|
history
diff --git
a/helper.c
b/helper.c
index
5ebcc09
..
441b3c9
100644
(file)
--- a/
helper.c
+++ b/
helper.c
@@
-351,6
+351,8
@@
void updateLights() {
glLightf(GL_LIGHT0 + i, GL_SPOT_CUTOFF, lightObjs[i].cutoff);
glLighti(GL_LIGHT0 + i, GL_SPOT_EXPONENT, (int)lightObjs[i].exponent );
+ glEnable(GL_LIGHT0 + i);
+
// Draw light ball for light
glPushMatrix();
glColor3f(1.0, 1.0, 1.0);
@@
-358,7
+360,6
@@
void updateLights() {
glutSolidSphere(lightBallSize, 20, 20);
glPopMatrix();
- glEnable(GL_LIGHT0 + i);
}
glEnable(GL_LIGHTING);
UCC
git Repository :: git.ucc.asn.au