!!ARBvp1.0

PARAM	mvp[4]			= { state.matrix.mvp };
PARAM	offset_1		= { 0, 0.01, 0, 0 };
PARAM	offset_2		= { 0, 0.02, 0, 0 };
PARAM	offset_3		= { 0, 0.03, 0, 0 };
PARAM	size			= 0.390625; # 100/256

# output tex coords
MAD result.texcoord[0].xy,  offset_1, size, vertex.texcoord[0];
MAD result.texcoord[1].xy, -offset_1, size, vertex.texcoord[0];
MAD result.texcoord[2].xy,  offset_2, size, vertex.texcoord[0];
MAD result.texcoord[3].xy, -offset_2, size, vertex.texcoord[0];
MAD result.texcoord[4].xy,  offset_3, size, vertex.texcoord[0];
MOV result.texcoord[5].xy, vertex.texcoord[0];

# compute position
DP4 result.position.x, mvp[0], vertex.position;
DP4 result.position.y, mvp[1], vertex.position;
DP4 result.position.z, mvp[2], vertex.position;
DP4 result.position.w, mvp[3], vertex.position;

END
