reorder

  • Optimizes Mesh Primitives for locality of reference. Choose whether the order should be optimal for transmission size (recommended for Web) or for GPU rendering performance. Requires a MeshoptEncoder instance from the Meshoptimizer library.

    Example:

    import { MeshoptEncoder } from 'meshoptimizer';
    import { reorder } from '@gltf-transform/functions';
    
    await MeshoptEncoder.ready;
    
    await document.transform(
        reorder({encoder: MeshoptEncoder})
    );
    
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.