summaryrefslogtreecommitdiffstats
path: root/progs/fp/add-sat.txt
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fp/add-sat.txt')
-rw-r--r--progs/fp/add-sat.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/fp/add-sat.txt b/progs/fp/add-sat.txt
new file mode 100644
index 0000000..2253efb
--- /dev/null
+++ b/progs/fp/add-sat.txt
@@ -0,0 +1,6 @@
+!!ARBfp1.0
+TEMP R0;
+MOV R0, fragment.color;
+ADD_SAT R0, R0, R0;
+MUL result.color, {0.5}.x, R0;
+END