summaryrefslogtreecommitdiffstats
path: root/progs/fp/local.txt
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2008-09-18 14:14:56 +0200
committerJakob Bornecrantz <jakob@tungstengraphics.com>2008-09-18 14:14:56 +0200
commitfa7529335c38d4c139e5b1fc17a518f7e5fa1d82 (patch)
tree3fefd10c7d6bcad0ba67a31347a369cc5489267f /progs/fp/local.txt
parent1672e8e05996d48e51a1998bd7e9b08b78e012f5 (diff)
downloadexternal_mesa3d-fa7529335c38d4c139e5b1fc17a518f7e5fa1d82.zip
external_mesa3d-fa7529335c38d4c139e5b1fc17a518f7e5fa1d82.tar.gz
external_mesa3d-fa7529335c38d4c139e5b1fc17a518f7e5fa1d82.tar.bz2
progs/fp: Add a bit of local variable testing to fp-tri
Diffstat (limited to 'progs/fp/local.txt')
-rw-r--r--progs/fp/local.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/fp/local.txt b/progs/fp/local.txt
new file mode 100644
index 0000000..6cb2a2f
--- /dev/null
+++ b/progs/fp/local.txt
@@ -0,0 +1,11 @@
+!!ARBfp1.0
+TEMP R0;
+PARAM c[4] = { { 0, 0, 0, 0 },
+ program.local[0..1],
+ { 1, 1, 1, 1 } };
+MOV R0, c[1];
+SUB R0, R0, c[0];
+ADD R0, R0, c[2];
+MUL R0, R0, c[3];
+MOV result.color, R0;
+END