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:
f82d842
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 06:54:06 +0000
(14:54 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 06:54:06 +0000
(14:54 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
b56b518
..
b9a617b
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-390,9
+390,9
@@
void display() {
glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0); // Set camera angle upward
\r
\r
/* Reposition the light source 0. */
\r
- lightObjs[0].position[0] = 12;
\r
+ lightObjs[0].position[0] = 12
*cos(45)
;
\r
lightObjs[0].position[1] = 5;
\r
- lightObjs[0].position[2] = 12;
\r
+ lightObjs[0].position[2] = 12
*sin(45 + 180)
;
\r
lightObjs[0].position[3] = 0.0;
\r
\r
//direction0[0] = lightPosition0[0];
\r
UCC
git Repository :: git.ucc.asn.au