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 POSITION (FLOAT VEC3), optional NORMAL (FLOAT VEC3),
optional TANGENT (FLOAT VEC4), optional TEXCOORD_0 VEC2, and optional index accessors
(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.