fast-mesh-wasm
    Preparing search index...

    Function importGLTFAsync

    • Reads a glTF 2.0 asset like importGLTF: KHR_draco_mesh_compression primitives decode through the draco3d decoder (WASM), and external (non-embedded) .bin buffers load through options.resolveBuffer. A Draco primitive's positions and faces come from its compressed buffer view (attribute ids from the extension); its node placement still bakes into world positions and its TEXCOORD_0 UVs, while colors read as null (compressed attributes beyond POSITION are not mapped).

      Primitives without the extension decode synchronously in place, so assets without Draco never initialize the decoder.

      Parameters

      Returns Promise<ImportedMesh[]>

      When the container is malformed, a buffer is external without a resolveBuffer (or its bytes cannot be resolved), a Draco primitive fails to decode, a primitive is not a triangle mesh, or the file holds no triangle meshes.