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

Fix line offset antialiasing #9408

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix line offset antialiasing #9408

wants to merge 2 commits into from

Conversation

colindm
Copy link

@colindm colindm commented Feb 4, 2025

Closes #8063
Closes #9395

Background

Change List

'fs:#main-start': `
float dist = abs(vPathPosition.x);
// Smooth transition at the edges (from 0.9 to 1.1 for a slightly wider antialiasing band)
float opacity = 1.0 - smoothstep(0.9, 1.1, dist);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rather than doing 1.0 - smoothstep just swap the parameters

@@ -50,6 +60,22 @@ const deckOverlay = new DeckOverlay({
getSourceColor: [0, 128, 200],
getTargetColor: [200, 0, 80],
getWidth: 1
}),
new GeoJsonLayer({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of changing the example could you update the render tests with the new images?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants