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:
b90a447
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Tue, 18 Oct 2011 07:12:19 +0000
(15:12 +0800)
committer
Ash Tyndall
<
[email protected]
>
Tue, 18 Oct 2011 07:12:19 +0000
(15:12 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
784de85
..
bad6fa2
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-588,12
+588,12
@@
void init() {
900.0 /* Z far */
\r
);
\r
\r
900.0 /* Z far */
\r
);
\r
\r
- glMatrixMode(GL_MODELVIEW);
\r
-
//
gluLookAt(
\r
-
//
0.0, 8.0, 60.0, /* eye is at (0,8,60) */
\r
-
//
0.0, 8.0, 0.0, /* center is at (0,8,0) */
\r
-
//
0.0, 1.0, 0.0 /* up is in postivie Y direction */
\r
- // );
\r
+
//
glMatrixMode(GL_MODELVIEW);
\r
+ gluLookAt(
\r
+ 0.0, 8.0, 60.0, /* eye is at (0,8,60) */
\r
+ 0.0, 8.0, 0.0, /* center is at (0,8,0) */
\r
+ 0.0, 1.0, 0.0 /* up is in postivie Y direction */
\r
+ );
\r
\r
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);
\r
glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColor);
\r
\r
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);
\r
glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColor);
\r
UCC
git Repository :: git.ucc.asn.au