lume icon indicating copy to clipboard operation
lume copied to clipboard

Ability to override materials of model elements (f.e. lume-gltf-model) in HTML, including the whole subtree

Open trusktr opened this issue 2 years ago • 0 comments

f.e. the following

<lume-gltf-model has="phong-material" color="pink"></lume-gltf-model>

make all meshes in the loaded model use the phong material.

Not useful in all cases, but definitely some! This is similar to Scene.overrideMaterial in three.js, but only for the subtree of the model element.

trusktr avatar May 15 '23 03:05 trusktr