Skip to content

Change emissive factor in js #3050

Answered by slightHYP
Thyronia asked this question in Q&A
Dec 13, 2021 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

I used the setter function to apply the new value.

In your case it should be something like this:
modelViewer.model.materials[2].setEmissiveFactor(emissive);

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@Thyronia
Comment options

@slightHYP
Comment options

@Thyronia
Comment options

@elalish
Comment options

Answer selected by Thyronia
Comment options

You must be logged in to vote
6 replies
@gabrielgaldinomagalhaes
Comment options

@gabrielgaldinomagalhaes
Comment options

@elalish
Comment options

@gabrielgaldinomagalhaes
Comment options

@elalish
Comment options

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