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.
.bin
Example:
document.getRoot().listBuffers(); // → [Buffer] await document.transform(partition({meshes: true})); document.getRoot().listBuffers(); // → [Buffer, Buffer, ...]
Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.
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, ...]