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
b56b518
..
0820aec
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-390,11
+390,17
@@
void display() {
glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0); // Set camera angle upward
\r
\r
/* Reposition the light source 0. */
\r
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] =
5
;
\r
lightObjs[0].position[1] = 5;
\r
lightObjs[0].position[1] = 5;
\r
- lightObjs[0].position[2] =
12
;
\r
+ lightObjs[0].position[2] =
5;//12*sin(0)
;
\r
lightObjs[0].position[3] = 0.0;
\r
\r
lightObjs[0].position[3] = 0.0;
\r
\r
+ /* Reposition the light source 1. */
\r
+ lightObjs[1].position[0] = -5;
\r
+ lightObjs[1].position[1] = 5;
\r
+ lightObjs[1].position[2] = -5;//12*sin(90);
\r
+ lightObjs[1].position[3] = 0.0;
\r
+
\r
//direction0[0] = lightPosition0[0];
\r
//direction0[2] = lightPosition0[2];
\r
\r
//direction0[0] = lightPosition0[0];
\r
//direction0[2] = lightPosition0[2];
\r
\r
UCC
git Repository :: git.ucc.asn.au