ofxIterativeBoxBlur icon indicating copy to clipboard operation
ofxIterativeBoxBlur copied to clipboard

assumes sq aspect ratio

Open ofZach opened this issue 5 years ago • 0 comments

trying to blur a large horizontal image i saw the blur not really square.

I think the code should be something like this to fix:

blur_shader.setUniform2f("direction", 1. / pingpong[index].front->getWidth(), 0);	
....			
blur_shader.setUniform2f("direction", 0, 1. / pingpong[index].front->getHeight());

ofZach avatar Sep 22 '18 10:09 ofZach