Skip to content

fix(rendering): anti-alias motion blur taps without fwidth - #4960

Closed
richiemcilroy wants to merge 1 commit into
mainfrom
fix/rendering-blur-tap-coverage
Closed

richiemcilroy wants to merge 1 commit into
mainfrom
fix/rendering-blur-tap-coverage

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

The composite shader's motion blur taps now anti-alias the card's rounded edge from the distance's change over one pixel instead of fwidth. The taps run after per-pixel returns (the apron and the border), where derivatives are undefined, so pixels next to a border could come out differently from one draw to the next. Only motion blur draws near the card's edge change.

Testing

  • cap-rendering --test downscale_filter looped on windows-2022 (WARP), main's shader vs this one, 4 runners each, with each case's full pipeline drawn twice and compared: main failed 41 of 85 runs, every time at one pixel next to the border in the styled, motion blurred case (up to 59 levels apart between two identical draws, also with --test-threads=1); this branch passed 97 of 97: https://github.com/CapSoftware/Cap/actions/runs/47543757301
  • Same draws, main vs this branch on WARP: 252 of the 372 motion blurred draws differ, none of the 186 without motion blur.
  • One run of the test binary took 101 s on average, 115 s on main.

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge; no actionable issues were found.

Summary

Replaces fwidth in motion blur tap coverage with explicit one-pixel distance samples.

  • Motion-blur taps estimate rounded-edge coverage without derivatives.

No actionable issues found. Review covered the shader math, callers, shader assembly, and existing tests. No rendering tests were run locally.

Reviews (1) · Last reviewed commit: "fix(rendering): anti-alias motion blur t..." · Reviewed by Greptile

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Ignored Ignored Preview Dec 5, 2026 5:33pm UTC

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@richiemcilroy

Copy link
Copy Markdown
Member Author

Superseded by #4964.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant