Skip to content
Discussion options

You must be logged in to vote

Hello! If I understand correctly, when you do:
const [material] = modelViewerColor.model.materials;
it will default to the [0] color.

Depending on how many and where the colors you want to change you just simply add [1] to the end like so:
const [material] = modelViewerColor.model.materials[0];
const [material1] = modelViewerColor.model.materials[1];

Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@salii15
Comment options

Answer selected by salii15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants