Jump to content

[HELP] Blur Shader


pepsi18

Recommended Posts

How can I make the blur shader green as in the image

uOQ3gMtSRNek.jpg?resize=741,417

texture ScreenTexture;	

float Angle = 0;  
float BlurAmount = 0.001;  

sampler ImageSampler = sampler_state
{
	Texture = <ScreenTexture>;
};


float4 main( float2 uv : TEXCOORD) : COLOR
{
	float4 output = 0;  
	float2 offset;  
	int count = 24;  

	
	sincos(Angle, offset.y, offset.x);
	offset *= BlurAmount;


	for(int i=0; i<count; i++)
		 {
			  output += tex2D(ImageSampler, uv - offset * i);
		 }
	output /= count; 

	return output;
};

technique MotionBlur
{
	pass P1
	{
		PixelShader = compile ps_2_0 main();
	}
}

 

Edited by pepsi18
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...