3 PARAM c4 = {4, 0, 0, 1};
4 PARAM mvp[4] = { state.matrix.mvp };
5 PARAM anim[] = { program.local[0..121] };
7 ATTRIB position = vertex.attrib[0];
8 ATTRIB normal = vertex.attrib[2];
9 ATTRIB color = vertex.attrib[3];
10 ATTRIB weights = vertex.attrib[6];
11 ATTRIB texcoord = vertex.attrib[8];
16 #######################################################################
21 DPH v.x, position, anim[a0.x+0];
22 DPH v.y, position, anim[a0.x+1];
23 DPH v.z, position, anim[a0.x+2];
26 ##############################
29 DPH t.x, position, anim[a0.x+0];
30 DPH t.y, position, anim[a0.x+1];
31 DPH t.z, position, anim[a0.x+2];
35 ##############################
38 DPH t.x, position, anim[a0.x+0];
39 DPH t.y, position, anim[a0.x+1];
40 DPH t.z, position, anim[a0.x+2];
45 ######################################################################
47 DP4 result.position.x, mvp[0], v;
48 DP4 result.position.y, mvp[1], v;
49 DP4 result.position.z, mvp[2], v;
50 DP4 result.position.w, mvp[3], v;
52 MOV result.color, color;
53 MOV result.texcoord, texcoord;