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

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

Open
jackkemmish opened this issue Mar 13, 2023 · 3 comments

Comments

@jackkemmish
Copy link

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

@vasturiano
Copy link
Owner

@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.

@jackkemmish
Copy link
Author

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

@vasturiano
Copy link
Owner

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

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