InternalThe ArrayBuffer containing the glTF file data
A string indicating the glTF format and version (e.g., 'glTF2.0', 'glTF1.0')
This function distinguishes between binary glTF (GLB) and regular glTF by checking the magic number at the beginning of the file. For GLB files, it reads the version directly from the header. For regular glTF files, it parses the JSON to extract the version from the asset.version field.
Checks the version of a glTF file by analyzing its ArrayBuffer content. Supports both binary (.glb) and text (.gltf) formats.