Is it possible to combine these two shaders so that a black and white blur comes out?
texture texture0;
float factor;
sampler Sampler0 = sampler_state
{
Texture = (texture0);
AddressU = MIRROR;
AddressV = MIRROR;
};
struct PSInput
{
float2 TexCoord : TEXCOORD0;
};
float4 PixelShader_Background(PSInput PS) : COLOR0
{
float4 sum = tex2D(Sampler0, PS.TexCoord);
for (float i = 1; i < 3; i++) {
sum += tex2D(Sampler0, float2(PS.TexCoord.x, PS.TexCoord.y + (i * factor)));
sum += tex2D(Sampler0, float2(PS.TexCoord.x, PS.TexCoor