materialExtensions constant

int const materialExtensions

u32 materialIndex, u32 jsonOffset, u32 jsonLength into the strings section.

The layers as glTF's own extension JSON, not as fixed fields. They are a handful of numbers per material that has any, read once at load, and the list of them grows with every KHR_materials_* the renderer learns; a fixed record would change size with each, where JSON keeps one record that an older reader reads what it knows of. A texture is {"image": i, "texCoord": n, "sampling": flags}, the flags those of F3dSamplingFlags.

Implementation

static const int materialExtensions = 12;