summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-03-24 17:50:36 +0000
committerKeith Whitwell <keithw@vmware.com>2009-03-24 17:50:36 +0000
commit993b7e1d5cdf1df3e7967afef16852fe287dc162 (patch)
tree516117157d7368b1ce6ed4e82bd8801adb9a662d /progs
parenta4a0ba1adb9fbe168c6b84cdd281992893208c08 (diff)
progs/vp: add pointsize + clamp test
Diffstat (limited to 'progs')
-rw-r--r--progs/vp/psiz-mul-clamp.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/vp/psiz-mul-clamp.txt b/progs/vp/psiz-mul-clamp.txt
new file mode 100644
index 0000000000..284c032d79
--- /dev/null
+++ b/progs/vp/psiz-mul-clamp.txt
@@ -0,0 +1,9 @@
+!!ARBvp1.0
+TEMP R0;
+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
+