Skip to content

Surface color layer #16

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Surface color layer #16

wants to merge 2 commits into from

Conversation

wcmatthysen
Copy link

I added a SurfaceColorLayer that is basically the same as the functionality that was already present in the DimGlobeSurface example. However, I required this as a dedicated layer that I wanted to configure in the list of layers and wrapping it in its own class was more useful for me.

Added a dedicated layer class to simulate what was done in the
DimGlobeSurface example. This class is constructed with a Color value
(defaults to black if none is specified) and is used to create a
surface-image that is stretched across the entire globe. This is
particularly useful if you want to create a Dimming effect by setting
this color to black, and playing around with the layer's opacity value
(or the image's opacity for that matter).
Modified the DimGlobeSurface example to make use of the
SurfaceColorLayer class instead of manually creating all of the
components to achieve the desired result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants