/*=============================================================================
	BlendImagePixelShader.hlsl: for blending the translucent buffer into the main image
	Copyright © 2006 NSE, Inc. All Rights Reserved.
=============================================================================*/

sampler2D TransTexture;
sampler2D BaseTexture;


void Main(
	in float2 TextureCoordinate : TEXCOORD0,
	out float4 OutColor : COLOR0
	)
{
	OutColor = float4( 
		tex2D( BaseTexture, TextureCoordinate ).rgb * tex2D( TransTexture, TextureCoordinate ).a + 
				tex2D( TransTexture, TextureCoordinate ).rgb, 
				tex2D( BaseTexture, TextureCoordinate ).a );
}
