// * y-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 DY = float2(0.0f, yoff);

	float4 col = float4(0,0,0,0);
	
	col += 0.10f * tex2D( texture, IN.texcoord0 - 2*DY );
	col += 0.25f * tex2D( texture, IN.texcoord0 - DY );
	col += 0.50f * tex2D( texture, IN.texcoord0 );
	col += 0.25f * tex2D( texture, IN.texcoord0 + DY );
	col += 0.10f * tex2D( texture, IN.texcoord0 + 2*DY );

	OUT = col * alpha;	
}

