ImageryLayer.nightAlpha option for night textures #8862
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First of all, this is my first pull request, so sorry if something is wrong.
EDIT:
I closed this pull request because of this: #8868
I added the nightAlpha option to the ImageryLayer class. It lets show and blend textures only on the shade side of the globe. This only takes effect whenenableLighting
istrue
.The main reason to do this was to have day and night Earth textures depending on the lighting as an example below.
If nightAlpha = 0.0 (default value), it doesn't take any effect.If nightAlpha > 0.0, the layer is only blended on shade side and has an alpha channel equal to nightAlphaAlso, I created the showcase of it called Night textures on the shade side in the Sandcastle.