vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
2.03k stars 301 forks source link

Changing color of globe #21

Open henrikruscon opened 4 years ago

henrikruscon commented 4 years ago

Changing the color of the globe seems to have no effect at all, when looking through the globeMaterial, seems the color is always a fixed black (0, 0, 0). How can we change the color of the globe?

vasturiano commented 4 years ago

@henrikdahl if you use the latest version of this module (2.14.3), you should be able to do the following:

myWorld.globeMaterial().color = new THREE.Color('purple');
ishaiavrahami commented 1 year ago

@vasturiano ive tried and it doesnt work

ishaiavrahami commented 1 year ago

This worked for me

myWorld.globeMaterial().emissive = new THREE.Color('purple');