pub fn import_glb(bytes: &[u8]) -> Result<Mesh, AssetError>Expand description
Parse a binary glTF (.glb): the 12-byte header, JSON chunk, and BIN chunk, then walk
meshes[].primitives[], reading each POSITION accessor (FLOAT VEC3) and the optional index
accessor (u8/u16/u32 SCALAR) out of the BIN buffer. Triangle primitives only (mode 4); other
modes are skipped (a faithful first cut). Embedded/external-URI buffers are not handled here —
self-contained GLB binary only.