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

Transparent globe #20

Open
henrikruscon opened this issue Jul 30, 2020 · 1 comment
Open

Transparent globe #20

henrikruscon opened this issue Jul 30, 2020 · 1 comment

Comments

@henrikruscon
Copy link

How to have the globe be transparent so that you see through it? For example if you got hexpolygons, to see their backside through the globe.

Been trying at this for hours with no success.

@vasturiano
Copy link
Owner

@henrikdahl thanks for reaching out.

You can simply change the globe material properties (using the .globeMaterial() accessor) to your desire. For example, to make it fully transparent:

myWorld.globeMaterial().opacity = 0;

In this case you probably also want to switch off the atmosphere effect, so:

myWorld.showAtmosphere(false);

You can see all the properties of the material you can manipulate from the threeJs docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants