gltf-rs / gltf

A crate for loading glTF 2.0
Apache License 2.0
531 stars 123 forks source link

Support EXT_mesh_gpu_instancing #408

Open wlinna opened 10 months ago

wlinna commented 10 months ago

I just noticed that gltf-rs does not support (EXT_mesh_gpu_instancing)[https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_mesh_gpu_instancing/README.md] . I know that at least Three.js may export such meshes, and it would be nice to be able to read such models.

CorneliusCornbread commented 10 months ago

You can access the extension values yourself with the following functions in the meantime: https://docs.rs/gltf/latest/gltf/scene/struct.Node.html#method.extension_value https://docs.rs/gltf/latest/gltf/scene/struct.Node.html#method.extensions