texture tex0;
texture tex1;
texture tex2;

technique tec0
{
		pass p0
    {
        Lighting = false;
	
        

	TexCoordIndex[0] = 1;
        // Set up texture stage 0
	Texture[0] = <tex2>;
				ColorArg1[0] = Texture;
				AlphaArg1[0] = Texture;
        ColorOp[0] = SelectArg1;
        AlphaOp[0] = SelectArg1;
	CullMode = NONE;
        
	TexCoordIndex[1] = 0;
        // Set up texture stage 0
	Texture[1] = <tex1>;
	ColorArg1[1] = Current;
	ColorArg2[1] = Texture;
	ColorOp[1] = Modulate;
	AlphaOp[1] = BLENDTEXTUREALPHA;
	AlphaArg1[1] = Current;
	AlphaArg2[1] = Texture;

	ZEnable = false;
	ZWriteEnable = false;

	AlphaBlendEnable = true;
	BlendOp = Add;
	DestBlend = INVSRCALPHA;
	SrcBlend = SRCALPHA;

	AddressV[0] = CLAMP;
	AddressU[0] = CLAMP;

	MinFilter[0] = LINEAR;
	MagFilter[0] = LINEAR;
	MipFilter[0] = Point;
	MinFilter[1] = LINEAR;
	MagFilter[1] = LINEAR;
	MipFilter[1] = Point;
    }
		
	    pass p1
    {
        Lighting = false;
	
        

	TexCoordIndex[0] = 1;
        // Set up texture stage 0
	Texture[0] = <tex0>;
				ColorArg1[0] = Texture;
				AlphaArg1[0] = Texture;
        ColorOp[0] = SelectArg1;
        AlphaOp[0] = SelectArg1;
	CullMode = NONE;
        
	ColorOp[1] = disable;
	AlphaOp[1] = disable;

	ZEnable = false;
	ZWriteEnable = false;

	AlphaBlendEnable = true;
	BlendOp = Add;
	DestBlend = INVSRCALPHA;
	SrcBlend = SRCALPHA;

	AddressV[0] = CLAMP;
	AddressU[0] = CLAMP;

	MinFilter[0] = LINEAR;
	MagFilter[0] = LINEAR;
	MipFilter[0] = Point;
	}
    
	
}
