Two rules the fixtures asserted in the wrong direction, found by reading CesiumMan.glb:
- MAT4 is an accessor type, and count is the number of elements rather than the number of floats.
A skin's inverse bind matrices are one MAT4 Float32 accessor whose count is the number of joints,
and the format allows the count to exceed the joints. The reader required SCALAR and refused the file.
- The BIN chunk type is spelled BIN in the spec and NUL in the files another tool writes, so both
spellings are accepted, and the chunk codes are built from their characters rather than from a hex
literal that had the bytes transposed.
The corpus gate now reads the inverse bind matrices, because that is the accessor a skin names and the
one the fixtures could not exercise.
node.matrix is column-major while Mat4 is row-major, and a skin's joints have to be resolved by node
index: in CesiumMan.glb the scene root holds only the mesh node and the nineteen joints hang off a
skeleton node the scene does not reach. Both are recorded on the shapes the reader returns.
Container rules: JSON chunk first, BIN second, chunk length multiple of 4,
declared total length must equal actual, unknown chunk types skipped, duplicate
known types refused.
Accessor rules: byteOffset must be a multiple of the component size, reads must
stay inside byteLength, sparse refused, normalized not applied, component type
5124 (INT) added.
FileRole.Reference and FileKind.Gltf added; codec registered in FormatRegistry.
Tests: 60 glTF tests (59 run without a corpus), `:format:jvmTest` green.