/********************************************************************************
FILE		:	Wireframe.fx
AUTHOR		:	Chad Taylor
DATE		:	9/20/06
TEAM		:	Double Hawk Games

All content (c) 2006-2007 DigiPen (USA) Corporation, all rights reserved.
********************************************************************************/
uniform extern float4x4 matViewProject;
uniform extern float4x4 matWorld;
uniform extern float4	colAmbient;
	
struct VS_OUTPUT
{
	float4 posH : POSITION;
};

VS_OUTPUT VS(float3 posL : POSITION0)
{
	VS_OUTPUT outVS = (VS_OUTPUT)0;

	// Transform to World space
	outVS.posH = mul(float4(posL, 1.0f),  matWorld);

	// Transform to homogeneous clip space
	outVS.posH = mul(outVS.posH,  matViewProject);

	return outVS;
}

float4 PS() : COLOR
{
	return colAmbient;
}

technique WireframeTech
{
	pass P0
	{
		vertexShader = compile vs_2_0 VS();
		pixelShader  = compile ps_2_0 PS();

		FillMode = Wireframe;
		CullMode = None;
	}
}
