OSDN Git Service

progs/vp: more psiz tests
authorKeith Whitwell <keithw@vmware.com>
Tue, 24 Mar 2009 19:25:56 +0000 (19:25 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 25 Mar 2009 10:07:28 +0000 (10:07 +0000)
progs/vp/psiz-imm.txt [new file with mode: 0644]
progs/vp/psiz-param-clamp.txt [new file with mode: 0644]

diff --git a/progs/vp/psiz-imm.txt b/progs/vp/psiz-imm.txt
new file mode 100644 (file)
index 0000000..18de249
--- /dev/null
@@ -0,0 +1,5 @@
+!!ARBvp1.0
+MOV result.color, vertex.color; 
+MOV result.pointsize, {2.0, 0, 0, 1};
+MOV  result.position, vertex.position;
+END
diff --git a/progs/vp/psiz-param-clamp.txt b/progs/vp/psiz-param-clamp.txt
new file mode 100644 (file)
index 0000000..7f83fc4
--- /dev/null
@@ -0,0 +1,10 @@
+!!ARBvp1.0
+TEMP R0;
+TEMP R1;
+MOV result.color, vertex.color; 
+MUL R0.x, vertex.color.x, {10.0}.x; 
+MAX R0.x, R0.x, {2.0}.x; 
+MIN result.pointsize.x, R0.x, {4.0}.x; 
+MOV  result.position, vertex.position;
+END
+