summaryrefslogtreecommitdiff
path: root/progs/fp/sge2.txt
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fp/sge2.txt')
-rw-r--r--progs/fp/sge2.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/fp/sge2.txt b/progs/fp/sge2.txt
new file mode 100644
index 0000000000..e02a50d477
--- /dev/null
+++ b/progs/fp/sge2.txt
@@ -0,0 +1,8 @@
+!!ARBfp1.0
+TEMP R0;
+TEMP R1;
+SGE R0, fragment.color, fragment.color.yzxw;
+SGE R1, fragment.color, fragment.color.zxyw;
+MUL R0, R0, R1;
+MUL result.color, R0, fragment.color;
+END