3 PARAM c4 = {4, 1e-8, 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];
37 ##############################
40 DPH t.x, position, anim[a0.x+0];
41 DPH t.y, position, anim[a0.x+1];
42 DPH t.z, position, anim[a0.x+2];
49 ######################################################################
51 DP4 result.position.x, mvp[0], v;
52 DP4 result.position.y, mvp[1], v;
53 DP4 result.position.z, mvp[2], v;
54 DP4 result.position.w, mvp[3], v;
56 MOV result.color, color;
57 MOV result.texcoord, texcoord;