takahirox / three-gltf-extensions

Unofficial Three.js glTF loader/exporter plugins
MIT License
123 stars 20 forks source link

KHR_materials_variants: Needs a way to select original materials #23

Closed takahirox closed 3 years ago

takahirox commented 3 years ago

The KHR_materials_variants plugin needs a way to select original materials. The first argument of .selectVariant() takes variant name and the function selects variant materials. selectVariant() needs a capability to select original materials or a new function would be necessary.