// * x-blur

struct fragment
{
	float4 position  : POSITION;
	float4 color0    : COLOR0;
	float2 texcoord0 : TEXCOORD0;
};

void main( in fragment IN,
					 in uniform sampler2D texture,
					 in uniform float xoff,
					 in uniform float yoff,
					 in uniform float alpha,
					 out float4 OUT : COLOR0 )
{
	const float2 DX = float2( xoff, 0.0f );
	float4 col = float4(0,0,0,0);

	col += 0.10f * tex2D( texture, IN.texcoord0 - 2*DX);
	col += 0.25f * tex2D( texture, IN.texcoord0 - DX);
	col += 0.50f * tex2D( texture, IN.texcoord0 );
	col += 0.25f * tex2D( texture, IN.texcoord0 + DX );
	col += 0.10f * tex2D( texture, IN.texcoord0 + 2*DX );
  
	OUT = col*alpha;
	
}