View Full Version : How to apply vertical and horizontal blur shaders?

08-22-2011, 12:17 PM
I need to apply two pass box blur to a texture. My problem is they don't act together only the last one that applied gives the result.

Ilian Dinev
08-22-2011, 12:40 PM
original_tex 1024x1024 -> [blur_horiz] -> temp_texture 128x1024

temp_texture 128x1024 -> [blur_vertic] -> result_texture 128x128

08-23-2011, 04:23 AM
Additional tip: you can use the same shader for both blur passes by manipulating the texture coordinates of the fullscreen quad.