BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.22k stars 4.62k forks source link

fix gaussianSelectiveBlur not a perfect circle #2513

Open lxlx5434 opened 6 years ago

lxlx5434 commented 6 years ago

Using GPUImageGaussianSelectiveBlurFilter results in an oval region but not a perfect circle: issue1 We can fix it by setting aspectRatio, but another issue occur. When I set excludeCirclePoint to (1.0, 1.0), I found that center of the circle not exactly at bottom-right: issue2 I fixed the shader string: fix1 fix2 Now it's a perfect circle and align any corner exactly.