-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add ground atmosphere #6877
Add ground atmosphere #6877
Conversation
Thanks for the pull request @bagnell!
Reviewers, don't forget to make sure that:
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
How does this play with |
If |
Code looks good at ultra quick glance! |
The ground atmosphere is now computed per-fragment in GlobeFS for better lighting of the day/night transition. It is only enabled when the camera is above the This is ready for review. |
Bump. |
This is a good example of what @pjcozzi means with looking washed out on different types of imagery. |
I also agree that a "Globe Lighting" Sandcastle that has toggles for
would be pretty useful to have generally, especially as this change rolls out and people are interested in customizing it. We could just point them to the demo. |
I tweaked some of the parameters for the fade in - it's a little smoother now and looks a bit better when Though setting |
The |
@lilleyse This is ready for another look. |
26fdbec
to
5e36c99
Compare
Looks really good - the water shading from far out is now much nicer now! I added a few last tweaks. Mainly just upped the specular brightness and changed the night fade in. There is one bug in the atmosphere demo where clicking the reset button doesn't seem to update the sliders. Does anyone else want to check this out before we merge? Demo of this branch here: |
Looks great at quick glance! |
…mosphere Sandcastle example.
Fixed. |
document.getElementById('lightingFadeInDistanceText').value = defaultLightFadeIn; | ||
document.getElementById('nightFadeOutDistanceSlider').value = defaultNightFadeOut; | ||
document.getElementById('nightFadeOutDistanceText').value = defaultNightFadeOut; | ||
document.getElementById('nightFadeInDistanceSlider').value = defaultNightFadeOut; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the proper way to do this in knockout is:
viewModel.lightingFadeOutDistance = defaultLightFadeOut;
viewModel.lightingFadeInDistance = defaultLightFadeIn;
viewModel.nightFadeOutDistance = defaultNightFadeOut;
viewModel.nightFadeInDistance = defaultNightFadeIn;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Updated.
I also noticed that the fog was broken, but it's now fixed. This is ready for another look. |
Looks good to me. Thanks @bagnell, this is a really nice visual quality improvement! |
Just added some last bits of documentation: b75d1cf |
Globe.showGroundAtmosphere
and is enabled by default.Globe.nightFadeOutDistance
andGlobe.nightFadeOutDistance
.