lume
lume copied to clipboard
Ability to override materials of model elements (f.e. lume-gltf-model) in HTML, including the whole subtree
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.