git.ucc.asn.au
/
atyndall
/
cits2231.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[atyndall/cits2231.git]
/
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
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
\r
glMaterialfv(GL_FRONT, GL_AMBIENT, ambient);
\r
glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse);
\r
UCC
git Repository :: git.ucc.asn.au