three-globe icon indicating copy to clipboard operation
three-globe copied to clipboard

Overriding createGlowMesh to be a flat colour instead of glowing effect?

Open jackkemmish opened this issue 1 year ago • 3 comments

Hi there,

I've been digging around the code in the repo and wondering if it's possible to override your createGlowMesh function to have less of a glow effect, and rather a flat colour? I'm a THREE newbie and not sure on the best approach to add my own here instead!

I am using this module as I need more control over the globe than the other globe.gl module you have.

Thanks, Jack

jackkemmish avatar Mar 13 '23 14:03 jackkemmish

@jackkemmish if you need more custom control over the glow mesh, perhaps the easiest is if you deactivate the one bundled with the module (via .showAtmosphere = false) and add your own mesh, which you can configure the way you prefer.

vasturiano avatar Mar 13 '23 23:03 vasturiano

Hi @vasturiano,

Do you by any chance have an example of adding a custom mesh? I see the customLayer you have here https://github.com/vasturiano/three-globe#custom-layer. Would it be added here for example?

Thanks, Jack

jackkemmish avatar Mar 14 '23 09:03 jackkemmish

Yes, that would work. Or you could add it to your scene directly.

vasturiano avatar Mar 14 '23 15:03 vasturiano