Function injectAssetExtrasIntoGlb

  • Injects/merges asset extras into a GLB buffer and returns a new GLB.

    Parameters

    • glb: Uint8Array
    • extras: AssetExtrasPayload

    Returns Uint8Array

    Error when the GLB is invalid or extras are not serializable.