Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the blur filter more accurate (Close #19516) #19645

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion render/wgpu/src/filters/blur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl BlurFilter {
// implementation was inspired by it: https://fgiesen.wordpress.com/2012/08/01/fast-blurs-2/

// This is how much the blur "extends past" the center pixel to either side.
let radius = (full_size - 1.0) / 2.0;
let radius = (full_size - 1.0) / 1.99;

// This is how many simple double-1 weighted pixel pairs we can sample in the center.
// Note how we're not using floor() here. This is to guarantee that alpha is not 0 when
Expand Down
Loading