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

Change Material after model is loaded. #45

Open
gminor7 opened this issue Jun 28, 2019 · 1 comment
Open

Change Material after model is loaded. #45

gminor7 opened this issue Jun 28, 2019 · 1 comment

Comments

@gminor7
Copy link

gminor7 commented Jun 28, 2019

I'm trying to load a new material for the loaded model dynamically and unable to do so. Would I have to remove and readd the meshes?

@kovacsv
Copy link
Owner

kovacsv commented Jun 30, 2019

You can modify the material of the generated three.js mesh like in this example:
https://github.com/kovacsv/JSModeler/blob/development/sandbox/changematerial.html

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