summaryrefslogtreecommitdiff
path: root/progs/fp/negate.txt
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fp/negate.txt')
-rw-r--r--progs/fp/negate.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/fp/negate.txt b/progs/fp/negate.txt
new file mode 100644
index 0000000000..3d00a04a58
--- /dev/null
+++ b/progs/fp/negate.txt
@@ -0,0 +1,6 @@
+!!ARBfp1.0
+# this should result in fragment color passing through unchanged
+TEMP R0;
+ADD R0, fragment.color, fragment.color;
+ADD result.color, R0, -fragment.color;
+END