
struct fragment {
	float4 position  : POSITION;
	float2 texcoord0 : TEXCOORD0;
};

fragment main(float2 tex0 : TEXCOORD0,
              float4 position : POSITION,
              uniform float4x4 modelViewProj,
              uniform float2x2 textureMatrix)
{
	fragment OUT;

	OUT.position = mul(modelViewProj, position);
	OUT.texcoord0 = mul(textureMatrix, tex0);

	return OUT;
}
