Partitions the binary payload of a glTF file so separate mesh or animation data is in separate
.bin
Buffers. This technique may be useful for engines that support lazy-loading
specific binary resources as needed over the application lifecycle.
Example:
document.getRoot().listBuffers(); // → [Buffer]
await document.transform(partition({meshes: true}));
document.getRoot().listBuffers(); // → [Buffer, Buffer, ...]
Made by Don McCurdy • Documented with greendoc • © 2023 MIT License
partition