summaryrefslogtreecommitdiff
path: root/progs/fp
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-03-06 20:42:40 +0000
committerKeith Whitwell <keithw@vmware.com>2009-03-06 21:00:18 +0000
commit2dd9a0197cf3d4d8ee5808c613fab9a256b9a0e6 (patch)
tree9fcda52b6196b81b835e957aeda7c255e744d1f5 /progs/fp
parent52a68b9078bdcf817363c4542252f284292d19f8 (diff)
fp: new kill + position test
Diffstat (limited to 'progs/fp')
-rw-r--r--progs/fp/kill-pos.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/fp/kill-pos.txt b/progs/fp/kill-pos.txt
new file mode 100644
index 0000000000..5ff4f6f2c8
--- /dev/null
+++ b/progs/fp/kill-pos.txt
@@ -0,0 +1,9 @@
+!!ARBfp1.0
+TEMP R0;
+SUB R0.xy, fragment.position, {125}.x;
+MOV R0.zw, {0}.x;
+DP3 R0, R0, R0;
+SUB R0.x, R0, {10000}.x;
+KIL -R0.x;
+MOV result.color, fragment.color;
+END