// Sample effect file

texture tex0;
texture tex1;

technique tec0
{
    pass p0
    {
        // Set up reasonable material defaults
//        MaterialAmbient = {0.8, 0.8, 0.8, 1.0}; 
 //       MaterialDiffuse = {1.0, 1.0, 1.0, 1.0}; 
 //       MaterialSpecular = {0.0, 0.0, 0.0, 1.0}; 
  //      MaterialPower = 40.0f;

//	DiffuseMaterialSource = material;	
//	Ambient = {1.0, 1.0, 1.0, 1.0}; 
        
	// Turn lighting on and use light 0
//!        Lighting = false;
//!	SpecularEnable = false;

//!	TexCoordIndex[0] = 0;
	Texture[0] = <tex0>;        
//        ColorOp[0] = SelectArg1;
//        ColorArg1[0] = Texture;
//        ColorArg2[0] = Diffuse;
        AlphaOp[0] = Modulate;
        AlphaArg1[0] = Texture;
        AlphaArg2[0] = Diffuse;

	AddressU[0] = WRAP;
	AddressV[0] = WRAP;

	TexCoordIndex[1] = 1;
	Texture[1] = <tex1>;        
       ColorOp[1] = blendcurrentalpha;
        ColorArg1[1] = Texture;
        ColorArg2[1] = current;
        AlphaOp[1] = disable;
        AlphaArg1[1] = Texture;
        AlphaArg2[1] = Diffuse;

	AddressU[1] = WRAP;
	AddressV[1] = WRAP;

	
//!	ColorOp[1] = disable;
//!	AlphaOp[1] = disable;

//!	ZWriteEnable = false;

//!	AlphaBlendEnable = true;
//!	BlendOp = Add;
	DestBlend = ONE;
	SrcBlend = srccolor;

	MipFilter[0] = NONE;
	MipFilter[1] = NONE;
	CullMode = NONE;
	
    }
}
