//
// Project:
//
//   D3D RightMark
//
// Description:
//   Effect file for "Hidden Surface Removal" test.
//
// Effect Version: 
//
//   DirectX 9.0 (Summer 2003 SDK Update)
//
// Shader Profile:
//
//   Fixed-Function Pixel Shader
//
//   Fixed-Function Vertex Shader
//

//
// Global Variables
//

texture tTexture;

matrix mW;	// World Matrix
matrix mV;	// View Matrix
matrix mP;	// Projection MAtrix

matrix mWVP;	// World * View * Projection Matrix

//
// Technique 0: Default Technique 
//

technique TNoTextures
{   
	pass p0
	{
		//
		// Common States
		//

		CullMode		 = CCW;
		AlphaBlendEnable	 = False;
		ZWriteEnable		 = True;

		ColorOp[0]		 = SelectArg1;
		ColorArg1[0]             = Diffuse;

		AlphaOp[0]		 = SelectArg1;
		AlphaArg1[0]             = Diffuse;

		// Transforms

		WorldTransform[0]        = <mW>;
		ViewTransform            = <mV>;
		ProjectionTransform      = <mP>;
	}
}

technique TTextures
{   
	pass p0
	{
		//
		// Common States
		//

		CullMode		 = CCW;
		AlphaBlendEnable	 = False;
		ZWriteEnable		 = True;

		Texture[0]		 = <tTexture>;

		MinFilter[ 0 ]           = Linear;
		MagFilter[ 0 ]           = Linear;
		MipFilter[ 0 ]           = Linear;

		ColorOp[0]		 = Modulate;
		ColorArg1[0]             = Diffuse;
		ColorArg2[0]             = Texture;

		AlphaOp[0]		 = Modulate;
		AlphaArg1[0]             = Diffuse;
		AlphaArg1[0]             = Texture;

		// Transforms

		WorldTransform[0]        = <mW>;
		ViewTransform            = <mV>;
		ProjectionTransform      = <mP>;
	}
}
