diff options
author | Keith Whitwell <[email protected]> | 2008-10-14 13:52:38 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-10-14 14:18:32 +0100 |
commit | 5548a3072f73b8868746b640535c4774657dc306 (patch) | |
tree | 60ad0df0bdf9a3ace9545aaa1dddf589d4d0119b /progs/vp/xform.txt | |
parent | 568e96b4533c5135f4d7f568a81cdfc0a6dcd7eb (diff) |
vp: add simple vertex transform test
Diffstat (limited to 'progs/vp/xform.txt')
-rw-r--r-- | progs/vp/xform.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/vp/xform.txt b/progs/vp/xform.txt new file mode 100644 index 00000000000..d1548f1f10d --- /dev/null +++ b/progs/vp/xform.txt @@ -0,0 +1,11 @@ +!!ARBvp1.0 +PARAM Emission = state.material.emission; +PARAM Ambient = state.material.ambient; +PARAM Diffuse = state.material.diffuse; +PARAM Specular = state.material.specular; +DP4 result.position.x, Ambient, vertex.position; +DP4 result.position.y, Diffuse, vertex.position; +DP4 result.position.z, Specular, vertex.position; +DP4 result.position.w, Emission, vertex.position; +MOV result.color, vertex.color; +END |