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

globeMaterial.map is null #105

Open
Divyesh-Kamalanaban opened this issue Mar 31, 2025 · 1 comment
Open

globeMaterial.map is null #105

Divyesh-Kamalanaban opened this issue Mar 31, 2025 · 1 comment

Comments

@Divyesh-Kamalanaban
Copy link

I want to set the anisotropy of the globe to be higher (to be exact : renderer.capabilities.setMaxAnisotropy()). However, when I try to access the map property (for anisotropy), it shows null.

@vasturiano
Copy link
Owner

@Divyesh-Kamalanaban the map property of the globeMaterial only gets set after the globeImageUrl file is loaded into a texture. So if you try to do it too early while it's still being loaded you'll encounter it empty. Perhaps that's the issue, but a simple example on https://codesandbox.io/ would help.

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