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:
3a98cd4
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 03:37:56 +0000
(11:37 +0800)
committer
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 03:37:56 +0000
(11:37 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
19d74af
..
8489282
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-370,18
+370,18
@@
void display() {
// Draw a white ball over the light source
\r
glPushMatrix();
\r
glDisable(GL_LIGHTING);
\r
// Draw a white ball over the light source
\r
glPushMatrix();
\r
glDisable(GL_LIGHTING);
\r
- glColor3f(
1.0, 1
.0, 0.0);
\r
+ glColor3f(
0.0, 0
.0, 0.0);
\r
glTranslatef(lightPosition0[0], lightPosition0[1], lightPosition0[2]);
\r
glTranslatef(lightPosition0[0], lightPosition0[1], lightPosition0[2]);
\r
- glutSolidSphere(
1.0
, 50, 50);
\r
+ glutSolidSphere(
0.3
, 50, 50);
\r
glEnable(GL_LIGHTING);
\r
glPopMatrix();
\r
\r
// Draw a white ball over the light source
\r
glPushMatrix();
\r
glDisable(GL_LIGHTING);
\r
glEnable(GL_LIGHTING);
\r
glPopMatrix();
\r
\r
// Draw a white ball over the light source
\r
glPushMatrix();
\r
glDisable(GL_LIGHTING);
\r
- glColor3f(
1.0, 1
.0, 0.0);
\r
+ glColor3f(
0.0, 0
.0, 0.0);
\r
glTranslatef(lightPosition1[0], lightPosition1[1], lightPosition1[2]);
\r
glTranslatef(lightPosition1[0], lightPosition1[1], lightPosition1[2]);
\r
- glutSolidSphere(
1.0
, 50, 50);
\r
+ glutSolidSphere(
0.3
, 50, 50);
\r
glEnable(GL_LIGHTING);
\r
glPopMatrix();
\r
\r
glEnable(GL_LIGHTING);
\r
glPopMatrix();
\r
\r
UCC
git Repository :: git.ucc.asn.au