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

Simplify and consolidate globe atmosphere uniforms #11756

Merged
merged 6 commits into from
Apr 21, 2022

Conversation

karimnaaji
Copy link
Contributor

Simplification to address review comment #11590 (comment) and follow up from #11590.

  • Reduce frequency of calculation for globeCenterInViewSpace and globeRadius moving its frequency from once per draw call to once per frame
  • Simplify and consolidate uniforms and remove duplication between atmosphere shader and globe shader prelude

@karimnaaji karimnaaji added the skip changelog Used for PRs that do not need a changelog entry label Apr 14, 2022
Copy link
Contributor

@mpulkki-mapbox mpulkki-mapbox left a comment

Choose a reason for hiding this comment

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

LGTM!

src/render/painter.js Outdated Show resolved Hide resolved
@karimnaaji karimnaaji force-pushed the karim/consolidate-globe-uniforms branch from 74bbb61 to edf8d67 Compare April 20, 2022 23:50
@karimnaaji karimnaaji force-pushed the karim/consolidate-globe-uniforms branch from edf8d67 to 8bd2a5f Compare April 21, 2022 00:02
@karimnaaji karimnaaji merged commit 6971327 into main Apr 21, 2022
@karimnaaji karimnaaji deleted the karim/consolidate-globe-uniforms branch April 21, 2022 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Used for PRs that do not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants