Skip to content

fix opacity interpolation for composition expressions - #8818

Merged
ansis merged 2 commits into
masterfrom
fix-8817
Oct 1, 2019
Merged

ansis merged 2 commits into
masterfrom
fix-8817

Conversation

@ansis

@ansis ansis commented Sep 27, 2019 •

Copy link
Copy Markdown
Contributor

fix #8817

The interpolation factor could be outside of the range 0..1 which could result in rendering errors.

This fix clamps the value to the correct range and adds a regression test cover the fix.

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • manually test the debug page
  • tagged @mapbox/gl-native if this PR includes shader changes or needs a native port

I'm not sure if this bug exists in mapbox-gl-native.

fix #8817

The interpolation factor could be outside of the range 0..1 which
could result in rendering errors.
"width": 64,
"height": 64,
"operations": [
["pauseSource", "geojson"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would be great to have a comment explaining why pauseSource is needed for this test.

@kkaefer kkaefer added this to the release-s milestone Sep 30, 2019
@chloekraw

Copy link
Copy Markdown
Contributor

@ansis should we check whether we clamp opacity interpolation for composition expressions in gl-native? even if we can't reproduce this specific bug, is there any reason we might not want to clamp it if it's not already?

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.

fill-opacity not interpolated correctly outside of a tile's zoom range

4 participants