summaryrefslogtreecommitdiffstats
path: root/progs/vp/psiz-param-clamp.txt
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-03-24 19:25:56 +0000
committerKeith Whitwell <[email protected]>2009-03-25 10:07:28 +0000
commite919bfa1f1766e71780d0a4db5a8b6a04d19868f (patch)
tree7158088e5a407a51de608e93f54239a14c948fee /progs/vp/psiz-param-clamp.txt
parentc306bf94d6ae20ce75965b1ae13213e24c976ed7 (diff)
progs/vp: more psiz tests
Diffstat (limited to 'progs/vp/psiz-param-clamp.txt')
-rw-r--r--progs/vp/psiz-param-clamp.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/vp/psiz-param-clamp.txt b/progs/vp/psiz-param-clamp.txt
new file mode 100644
index 00000000000..7f83fc45165
--- /dev/null
+++ b/progs/vp/psiz-param-clamp.txt
@@ -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
+