!!ARBvp1.0
# Original Input...
ATTRIB OriginalPos   = vertex.position;		# Input vertex position.
ATTRIB OriginalNormal= vertex.normal;        # Input vertex normal.

# Vertex Output...
OUTPUT OutPos			= result.position;		# Output position.

# Constant variables...
PARAM ModelViewProj[4]  = { state.matrix.mvp }; # Modelview Projection Matrix.
PARAM div2 = { .01, .01, .01, 0.0 };
TEMP Offset;


TEMP Tpos;

#**************************************************
# BODY
#**************************************************

MUL Offset, OriginalNormal, div2;


ADD Tpos,OriginalPos,Offset;

# Here each axis is transformed into clip space.
DP4 OutPos.x, ModelViewProj[0], Tpos;
DP4 OutPos.y, ModelViewProj[1], Tpos;
DP4 OutPos.z, ModelViewProj[2], Tpos;
DP4 OutPos.w, ModelViewProj[3], Tpos;



END
