pepsi18 Posted November 9, 2017 Share Posted November 9, 2017 (edited) How can I make the blur shader green as in the image 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 November 9, 2017 by pepsi18 Link to comment
Dzsozi (h03) Posted November 10, 2017 Share Posted November 10, 2017 I think this would do the trick. https://community.multitheftauto.com/index.php?p=resources&s=details&id=7545 Or maybe just draw a barely visible vignette like, white (so you can set the color via script) image? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now