summaryrefslogtreecommitdiffstats
path: root/progs/fp/fp-tri.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-03-23 18:37:33 +0000
committerKeith Whitwell <[email protected]>2009-03-23 18:39:36 +0000
commit103a4bd71136b14424a4af5a2eadf56c51692115 (patch)
treea301b2cdd7f63010ae8c0169ba6fe5a523509fda /progs/fp/fp-tri.c
parente9d156e9e4f92ae1ce70bd563c251b34d238c4bc (diff)
progs/fp: pass texcoord to triangle, add a test shader
Diffstat (limited to 'progs/fp/fp-tri.c')
-rw-r--r--progs/fp/fp-tri.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/fp/fp-tri.c b/progs/fp/fp-tri.c
index bc490c05201..6c15540d38d 100644
--- a/progs/fp/fp-tri.c
+++ b/progs/fp/fp-tri.c
@@ -210,11 +210,17 @@ static void Display(void)
glProgramLocalParameter4fARB(GL_FRAGMENT_PROGRAM_ARB, 0, 1.0, 1.0, 0.0, 0.0);
glProgramLocalParameter4fARB(GL_FRAGMENT_PROGRAM_ARB, 1, 0.0, 0.0, 1.0, 1.0);
glBegin(GL_TRIANGLES);
+
glColor3f(0,0,1);
+ glTexCoord3f(1,1,0);
glVertex3f( 0.9, -0.9, -30.0);
+
glColor3f(1,0,0);
+ glTexCoord3f(1,-1,0);
glVertex3f( 0.9, 0.9, -30.0);
+
glColor3f(0,1,0);
+ glTexCoord3f(-1,0,0);
glVertex3f(-0.9, 0.0, -30.0);
glEnd();