Repository navigation
fix(rendering): anti-alias motion blur taps without fwidth - #4960
Closed
richiemcilroy wants to merge 1 commit into
Closed
richiemcilroy wants to merge 1 commit into
richiemcilroy wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Member
Author
|
hey @greptileai, please re-review the PR |
Member
Author
|
Superseded by #4964. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_filterlooped 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/47543757301Confidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.Summary
Replaces
fwidthin motion blur tap coverage with explicit one-pixel distance samples.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