summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-25 09:41:49 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-25 09:41:49 -0600
commit05b2297befccb67acc30bd74f8d7586fc88014d1 (patch)
tree704f014b76b61a989c499611c7b0792a493d398a /progs
parentc2577bb1a0a2381789759420576af7b4c8acdfeb (diff)
better triangle Z coords
Diffstat (limited to 'progs')
-rw-r--r--progs/trivial/tri-z.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/trivial/tri-z.c b/progs/trivial/tri-z.c
index cda62ad675..ae25900a35 100644
--- a/progs/trivial/tri-z.c
+++ b/progs/trivial/tri-z.c
@@ -51,9 +51,9 @@ static void drawLeftTriangle(void)
/* draw yellow triangle on LHS of screen */
glBegin (GL_TRIANGLES);
glColor4f(1.0, 1.0, 0.0, 0.75);
- glVertex3f(0.1, 0.9, 0.0);
- glVertex3f(0.1, 0.1, 0.0);
- glVertex3f(0.7, 0.5, 0.0);
+ glVertex3f(0.1, 0.9, -1.0);
+ glVertex3f(0.1, 0.1, -1.0);
+ glVertex3f(0.8, 0.5, 1.0);
glEnd();
}
@@ -63,7 +63,7 @@ static void drawRightTriangle(void)
glBegin (GL_TRIANGLES);
glColor4f(0.0, 1.0, 1.0, 0.75);
glVertex3f(0.9, 0.9, 0.0);
- glVertex3f(0.3, 0.5, 0.0);
+ glVertex3f(0.2, 0.5, 0.0);
glVertex3f(0.9, 0.1, 0.0);
glEnd();
}