// Global constants
float4x4 worldViewProj;

// Output structure
struct VS_OUTPUT
{
	float4 position : POSITION;
	float2 tex : TEXCOORD0;
};

// Entry point
VS_OUTPUT Main( float4 position : POSITION, float2 tex : TEXCOORD0)
{
	VS_OUTPUT outputVertex = (VS_OUTPUT)0;
	
	// Transforms the position and sets position
	outputVertex.position = mul(position, worldViewProj);
	
	outputVertex.tex = tex;

	return outputVertex;
}