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 opacity interpolation for composition expressions #8818

Merged
merged 2 commits into from
Oct 1, 2019
Merged

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Sep 27, 2019

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
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
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