Repository navigation
Fix fill outline rendering - #10456
Conversation
175c86c to
5d0801c
Compare
karimnaaji
left a comment
There was a problem hiding this comment.
Looks good, nice find! One nit on the changelog entry before we can merge.
| ### 🐞 Bug fixes | ||
|
|
||
| - Fixed a font glyphs performance regression on Firefox. ([10363](https://github.com/mapbox/mapbox-gl-js/pull/10363)) | ||
| - Fixed disappearing fill outlines when map pitch angle was greater than 0. ([10456](https://github.com/mapbox/mapbox-gl-js/pull/10456)) |
There was a problem hiding this comment.
You can move that directly in the PR description as this is the changelog for 2.1.1, we compile the changelog only prior to the release.
There was a problem hiding this comment.
That's great! I'll move the changelog entry to the PR description 👍
- Anti-aliasing implementation used in fill outline shader is erroneously comparing coordinates with different interpolation modes. gl_FragCoord is interpolated linearly in screen space whereas vayrings are using perspective correct interpolation. This results in lines disappearing when map pitch is set to > 0.
Co-authored-by: Karim Naaji <[email protected]>
60c279a to
5b40a26
Compare
|
Render test |
karimnaaji
left a comment
There was a problem hiding this comment.
The change looks good, for #10456 (comment), I think you can rebaseline the test for this PR and open a separate ticket for follow up, as it's not a regression introduced here.
Reverting because of change in behavior with no pitch on mobile. This reverts commit 32ceb58.


Anti-aliasing implementation used in fill outline shader is erroneously comparing coordinates with different interpolation modes.
gl_FragCoordis interpolated linearly in screen space whereas varyings are using perspective correct interpolation. This results in lines disappearing when map pitch is set to > 0 as seen in following animations:This can be fixed by either using
noperspectivequalifier with varying variables or doing it by hand in the shader code. The latter approach is used in this PR asnoperspectiveis not supported in webgl 1 & 2.Launch Checklist
mapbox-gl-jschangelog:<changelog>Fixed disappearing fill outlines when map pitch angle was greater than 0</changelog>