-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(layers): analytic antialiasing for PathLayer and LineLayer #10520
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
Open
chrisgervang
wants to merge
22
commits into
master
Choose a base branch
from
claude/deckgl-path-aliasing-4tx9a3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
69a3ce6
feat(layers): add antialiasing prop to PathLayer and LineLayer
claude 6b7f3a1
fix(layers): derive antialiasing coverage from screen-space derivatives
claude 50e6277
test(layers): add coverage-based render test for PathLayer antialiasing
claude f0f955a
test(layers): run antialiasing test without MSAA, where the prop applies
claude fed9c28
docs(layers): correct the note on why both edge derivatives are computed
claude 37b3377
docs: add RFC for PathLayer and LineLayer analytic antialiasing
claude 966b13f
fix(layers): take edge derivatives before the discards in PathLayer
claude f319dcc
test(layers): add golden image coverage for antialiasing
claude d1446cb
docs: enumerate every path where deck loses MSAA
claude dfc1619
refactor(layers): tighten shader comments, add variety to the AA golden
claude ff83661
docs: relate the antialiasing RFC to existing tracker discussion
claude 3a7d3d5
docs: lead the antialiasing RFC with a remedy matrix
claude 95e35c8
docs: record what changes if luma.gl#2741 lands
claude b7cdf19
feat(layers): expose antialiasing on PolygonLayer and GeoJsonLayer, d…
claude d49ed7b
test(layers): state the offset guard as behavior, not as history
claude abb81ee
test(layers): carry the commented-out webgpu suite on the AA render test
claude 2d98227
refactor(layers): use the shared smoothedge helper, prep LineLayer fo…
claude d7996ed
fix(core): remap clip-space depth for WebGPU
claude 2c09436
docs(rfc): record what WebGPU coverage is actually asserted
claude 2f6f0b6
test(layers): guard premultiplied alpha ordering, record alpha-to-cov…
claude 241d28b
test(render): enable the WebGPU line-layer case, expected to fail
claude 14434fe
Merge branch 'master' into claude/deckgl-path-aliasing-4tx9a3
chrisgervang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AA misses outer coverage half
Medium Severity
Coverage is centered with
smoothedge(0.0, edgePixels), but stroke geometry is not expanded by half a device pixel and round joints stilldiscardpast the silhouette. Pixel centers outside the edge never shade, so the outer half of the claimed one-pixel feather is lost and edges cut off around 50% alpha.Additional Locations (2)
modules/layers/src/line-layer/line-layer-fragment.glsl.ts#L20-L27modules/layers/src/path-layer/path-layer-fragment.glsl.ts#L43-L52Reviewed by Cursor Bugbot for commit 14434fe. Configure here.