progs/vp: add param and imm test
authorKeith Whitwell <keithw@vmware.com>
Fri, 20 Nov 2009 03:50:19 +0000 (19:50 -0800)
committerKeith Whitwell <keithw@vmware.com>
Fri, 20 Nov 2009 03:50:19 +0000 (19:50 -0800)
progs/vp/add-param-imm.txt [new file with mode: 0644]

diff --git a/progs/vp/add-param-imm.txt b/progs/vp/add-param-imm.txt
new file mode 100644 (file)
index 0000000..90bcf96
--- /dev/null
@@ -0,0 +1,7 @@
+!!ARBvp1.0
+TEMP R0;
+PARAM Emission = state.material.emission; 
+ADD R0, vertex.color, {-0.5}.x;
+ADD result.color, R0, Emission.w;
+MOV  result.position, vertex.position;
+END