partition

  • 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, ...]
    
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.