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

Don't hardcode WGS84 in shaders #8684

Merged
merged 4 commits into from
Mar 18, 2020
Merged

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Mar 16, 2020

Fixes #8683
Fixes #7124

The first bug is related to the depth plane being too large because czm_ellipsoidInverseRadii was hardcoded to WGS84. Sandcastle.

The second bug is related to ground atmosphere also hardcoding WGS84 but in a different way. For best results you should still tweaks the near and far fade distance to more closely match the ellipsoid. Sandcastle.

@cesium-concierge
Copy link

Thanks for the pull request @lilleyse!

  • ✔️ Signed CLA found.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

@OmarShehata
Copy link
Contributor

Thanks @lilleyse , can confirm this fixes the two issues. Code and tests all look good to me.

@OmarShehata OmarShehata merged commit 6b2d445 into master Mar 18, 2020
@OmarShehata OmarShehata deleted the ellipsoid-radii-non-wgs84 branch March 18, 2020 18:24
@lilleyse lilleyse mentioned this pull request Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants