Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ec81b76f3e
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (43 sloc) 1.25 kb
!!ARBvp1.0
PARAM c4 = {4, 0, 0, 1};
PARAM mvp[4] = { state.matrix.mvp };
PARAM anim[] = { program.local[0..121] };
ATTRIB position = vertex.attrib[0];
ATTRIB normal = vertex.attrib[2];
ATTRIB color = vertex.attrib[3];
ATTRIB weights = vertex.attrib[6];
ATTRIB texcoord = vertex.attrib[8];
TEMP v, t, w, s;
ADDRESS a0;
#######################################################################
FRC w, weights;
ARL a0.x, weights.x;
DPH v.x, position, anim[a0.x+0];
DPH v.y, position, anim[a0.x+1];
DPH v.z, position, anim[a0.x+2];
MUL v, v, w.x;
##############################
ARL a0.x, weights.y;
DPH t.x, position, anim[a0.x+0];
DPH t.y, position, anim[a0.x+1];
DPH t.z, position, anim[a0.x+2];
MAD v.xyz, t, w.y, v;
##############################
ARL a0.x, weights.z;
DPH t.x, position, anim[a0.x+0];
DPH t.y, position, anim[a0.x+1];
DPH t.z, position, anim[a0.x+2];
MAD v.xyz, t, w.z, v;
MOV v.w, c4.w;
######################################################################
#MOV v, position;
DP4 result.position.x, mvp[0], v;
DP4 result.position.y, mvp[1], v;
DP4 result.position.z, mvp[2], v;
DP4 result.position.w, mvp[3], v;
MOV result.color, color;
MOV result.texcoord, texcoord;
END
# Local Variables:
# mode: python
# End:
Jump to Line
Something went wrong with that request. Please try again.