qmuntal/gltf

View on GitHub
testdata/BoxVertexColors/glTF/BoxVertexColors.gltf

Summary

Maintainability
Test Coverage
{
    "accessors": [
        {
            "bufferView": 0,
            "byteOffset": 0,
            "componentType": 5123,
            "count": 36,
            "type": "SCALAR"
        },
        {
            "bufferView": 1,
            "byteOffset": 0,
            "componentType": 5126,
            "count": 24,
            "max": [
                0.5,
                0.5,
                0.5
            ],
            "min": [
                -0.5,
                -0.5,
                -0.5
            ],
            "type": "VEC3"
        },
        {
            "bufferView": 2,
            "byteOffset": 0,
            "componentType": 5126,
            "count": 24,
            "type": "VEC3"
        },
        {
            "bufferView": 3,
            "byteOffset": 0,
            "componentType": 5126,
            "count": 24,
            "type": "VEC4"
        },
        {
            "bufferView": 4,
            "byteOffset": 0,
            "componentType": 5126,
            "count": 24,
            "type": "VEC2"
        }
    ],
    "asset": {
        "generator": "FBX2glTF",
        "version": "2.0"
    },
    "bufferViews": [
        {
            "buffer": 0,
            "byteLength": 72,
            "byteOffset": 0,
            "target": 34963
        },
        {
            "buffer": 0,
            "byteLength": 288,
            "byteOffset": 72,
            "target": 34962
        },
        {
            "buffer": 0,
            "byteLength": 288,
            "byteOffset": 360,
            "target": 34962
        },
        {
            "buffer": 0,
            "byteLength": 384,
            "byteOffset": 648,
            "target": 34962
        },
        {
            "buffer": 0,
            "byteLength": 192,
            "byteOffset": 1032,
            "target": 34962
        }
    ],
    "buffers": [
        {
            "byteLength": 1224,
            "uri": "buffer.bin"
        }
    ],
    "materials": [
        {
            "name": "Default",
            "pbrMetallicRoughness": {
                "baseColorFactor": [
                    0.8,
                    0.8,
                    0.8,
                    1.0
                ],
                "metallicFactor": 0.1,
                "roughnessFactor": 0.99
            }
        }
    ],
    "meshes": [
        {
            "name": "Cube",
            "primitives": [
                {
                    "attributes": {
                        "COLOR_0": 3,
                        "NORMAL": 2,
                        "POSITION": 1,
                        "TEXCOORD_0": 4
                    },
                    "indices": 0,
                    "material": 0,
                    "mode": 4
                }
            ]
        }
    ],
    "nodes": [
        {
            "children": [
                1,
                2,
                3
            ],
            "name": "RootNode",
            "rotation": [
                0.0,
                0.0,
                0.0,
                1.0
            ],
            "scale": [
                1.0,
                1.0,
                1.0
            ],
            "translation": [
                0.0,
                0.0,
                0.0
            ]
        },
        {
            "name": "Mesh",
            "rotation": [
                0.0,
                0.0,
                0.0,
                1.0
            ],
            "scale": [
                1.0,
                1.0,
                1.0
            ],
            "translation": [
                0.0,
                0.0,
                0.0
            ]
        },
        {
            "mesh": 0,
            "name": "Cube",
            "rotation": [
                0.0,
                0.0,
                0.0,
                1.0
            ],
            "scale": [
                1.0,
                1.0,
                1.0
            ],
            "translation": [
                0.0,
                0.0,
                0.0
            ]
        },
        {
            "name": "Texture Group",
            "rotation": [
                0.0,
                0.0,
                0.0,
                1.0
            ],
            "scale": [
                1.0,
                1.0,
                1.0
            ],
            "translation": [
                0.0,
                0.0,
                0.0
            ]
        }
    ],
    "samplers": [
        {}
    ],
    "scene": 0,
    "scenes": [
        {
            "name": "Root Scene",
            "nodes": [
                0
            ]
        }
    ]
}