Skip to content
Discussion options

You must be logged in to vote

Hi @adrianposteuca, model.materials returns a list of objects of type Material.

(property) Model.materials: Material[]

So you can do sth like :

let material = modelViewerParameters.model.materials[0];
material.pbrMetallicRoughness.setBaseColorFactor([0.7294, 0.5333, 0.0392]);

Checkout our Change Material Metalness and Roughness Factors example

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianposteuca
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