summaryrefslogtreecommitdiffstats
path: root/progs/fp/kil-texcoord-sgt.txt
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/kil-texcoord-sgt.txt
parente9d156e9e4f92ae1ce70bd563c251b34d238c4bc (diff)
progs/fp: pass texcoord to triangle, add a test shader
Diffstat (limited to 'progs/fp/kil-texcoord-sgt.txt')
-rw-r--r--progs/fp/kil-texcoord-sgt.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/fp/kil-texcoord-sgt.txt b/progs/fp/kil-texcoord-sgt.txt
new file mode 100644
index 00000000000..c74fd10dacb
--- /dev/null
+++ b/progs/fp/kil-texcoord-sgt.txt
@@ -0,0 +1,8 @@
+!!ARBfp1.0
+TEMP R0;
+MUL R0.xy, fragment.texcoord[0], fragment.texcoord[0];
+ADD R0.x, R0.x, R0.y;
+SGE R0.y, R0.x, fragment.texcoord[0].w;
+KIL -R0.y;
+MOV result.color, fragment.color;
+END