gltf-rs / gltf

A crate for loading glTF 2.0
Apache License 2.0
534 stars 124 forks source link

Support for KHR_materials_variants #301

Closed james7132 closed 2 years ago

james7132 commented 3 years ago

Support for the KHR_materials_variants extension would be super useful for packing multiple GLTF files with only material differences instead of needing to ship all items while duplicating meshes, nodes, and animations.

Full docs for the extension: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_variants

alteous commented 3 years ago

This looks interesting! I imagine it wouldn't be difficult to add data structures for this.

alteous commented 2 years ago

Implemented by https://github.com/gltf-rs/gltf/pull/319.