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

Set MapNode material #79

Open
atruebin opened this issue Sep 20, 2024 · 2 comments
Open

Set MapNode material #79

atruebin opened this issue Sep 20, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@atruebin
Copy link

Hi there!

I need to use MeshStandardMaterial for the MapPlaneNode so the light affects it. For now it seems the only way to do it is to extend MapPlaneNode class and change material after super() is called.

It would be great to have an option to set the material with constructor argument or have MapNode class atribute storing the material class, so it can be reassigned.

Thank you!

@tentone tentone added the enhancement New feature or request label Sep 21, 2024
@tentone
Copy link
Owner

tentone commented Sep 21, 2024

Hello

We can add a callback to set the material, everytime that a new tile is created.

Would this work for you?

@atruebin
Copy link
Author

It will still be created with MeshBasicMaterial, and changed after, right? I propose options to change it before creation.

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

No branches or pull requests

2 participants