!!ARBvp1.0
OPTION ARB_position_invariant;
PARAM projection[4] = {state.matrix.projection};
PARAM model[4] = {state.matrix.modelview};
TEMP eyeNormal,eyeVertex,lightVector,viewVector;
PARAM half = {0.5,0.5,0.5,0.5};
DP3 eyeNormal.x, model[0], vertex.normal;
DP3 eyeNormal.y, model[1], vertex.normal;
DP3 eyeNormal.z, model[2], vertex.normal;
DP3 eyeNormal.w, eyeNormal, eyeNormal;
RSQ eyeNormal.w, eyeNormal.w;
MUL eyeNormal.xyz, eyeNormal.w, eyeNormal;
DP4 eyeVertex.x, model[0], vertex.position;
DP4 eyeVertex.y, model[1], vertex.position;
DP4 eyeVertex.z, model[2], vertex.position;
DP4 eyeVertex.w, model[3], vertex.position;
MAD result.color.primary,eyeNormal,half,half;
SUB result.texcoord[0],state.light[0].position, eyeVertex;
SUB result.texcoord[1],state.light[1].position, eyeVertex;
TEMP PRT;
DP4 PRT.x,vertex.attrib[3],program.env[10];
DP4 PRT.y, vertex.attrib[4],program.env[11];
DP4 PRT.z, vertex.attrib[5],program.env[12];
DP4 PRT.w, vertex.attrib[6],program.env[13];
DP4 result.color.primary.r,PRT,1;
DP4 PRT.x,vertex.attrib[3],program.env[14];
DP4 PRT.y, vertex.attrib[4],program.env[15];
DP4 PRT.z, vertex.attrib[5],program.env[16];
DP4 PRT.w, vertex.attrib[6],program.env[17];
DP4 result.color.primary.g,PRT,1;
DP4 PRT.x,vertex.attrib[3],program.env[18];
DP4 PRT.y, vertex.attrib[4],program.env[19];
DP4 PRT.z, vertex.attrib[5],program.env[20];
DP4 PRT.w, vertex.attrib[6],program.env[21];
DP4 result.color.primary.b,PRT,1;
END
