275 lines
5.2 KiB
JSON
275 lines
5.2 KiB
JSON
{
|
|
"extensionsUsed": [
|
|
"EXT_mesh_features"
|
|
],
|
|
"accessors": [
|
|
{
|
|
"bufferView": 0,
|
|
"byteOffset": 0,
|
|
"componentType": 5123,
|
|
"count": 6,
|
|
"type": "SCALAR",
|
|
"max": [
|
|
3
|
|
],
|
|
"min": [
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"bufferView": 1,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 4,
|
|
"type": "VEC3",
|
|
"max": [
|
|
1,
|
|
1,
|
|
0
|
|
],
|
|
"min": [
|
|
0,
|
|
0,
|
|
0
|
|
]
|
|
},
|
|
{
|
|
"bufferView": 2,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 4,
|
|
"type": "VEC3",
|
|
"max": [
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"min": [
|
|
0,
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"bufferView": 3,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 4,
|
|
"type": "VEC2",
|
|
"max": [
|
|
1,
|
|
1
|
|
],
|
|
"min": [
|
|
0,
|
|
0
|
|
]
|
|
}
|
|
],
|
|
"asset": {
|
|
"generator": "JglTF from https://github.com/javagl/JglTF",
|
|
"version": "2.0"
|
|
},
|
|
"buffers": [
|
|
{
|
|
"uri": "buffer.bin",
|
|
"byteLength": 140
|
|
}
|
|
],
|
|
"bufferViews": [
|
|
{
|
|
"buffer": 0,
|
|
"byteOffset": 0,
|
|
"byteLength": 12,
|
|
"target": 34963
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteOffset": 12,
|
|
"byteLength": 48,
|
|
"target": 34962
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteOffset": 60,
|
|
"byteLength": 48,
|
|
"target": 34962
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteOffset": 108,
|
|
"byteLength": 32,
|
|
"target": 34962
|
|
}
|
|
],
|
|
"images": [
|
|
{
|
|
"uri": "featureIdTextureLarge.png",
|
|
"mimeType": "image/png"
|
|
},
|
|
{
|
|
"uri": "featureIdTextureLarge.png",
|
|
"mimeType": "image/png"
|
|
}
|
|
],
|
|
"materials": [
|
|
{
|
|
"pbrMetallicRoughness": {
|
|
"baseColorFactor": [
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"baseColorTexture": {
|
|
"index": 0,
|
|
"texCoord": 0
|
|
},
|
|
"metallicFactor": 0,
|
|
"roughnessFactor": 1
|
|
},
|
|
"alphaMode": "OPAQUE",
|
|
"doubleSided": true
|
|
}
|
|
],
|
|
"meshes": [
|
|
{
|
|
"primitives": [
|
|
{
|
|
"extensions": {
|
|
"EXT_mesh_features": {
|
|
"featureIds": [
|
|
{
|
|
"label": "idsRGBA",
|
|
"featureCount": 1048576,
|
|
"texture": {
|
|
"index": 1,
|
|
"texCoord": 0,
|
|
"channels": [
|
|
0,
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"label": "idsRGB",
|
|
"featureCount": 1048576,
|
|
"texture": {
|
|
"index": 1,
|
|
"texCoord": 0,
|
|
"channels": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"label": "idsG",
|
|
"featureCount": 256,
|
|
"texture": {
|
|
"index": 1,
|
|
"texCoord": 0,
|
|
"channels": [
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"label": "idsBA",
|
|
"featureCount": 65536,
|
|
"texture": {
|
|
"index": 1,
|
|
"texCoord": 0,
|
|
"channels": [
|
|
2,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"label": "idsGR",
|
|
"featureCount": 65536,
|
|
"texture": {
|
|
"index": 1,
|
|
"texCoord": 0,
|
|
"channels": [
|
|
1,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"label": "idsAGBB",
|
|
"featureCount": 1048576,
|
|
"texture": {
|
|
"index": 1,
|
|
"texCoord": 0,
|
|
"channels": [
|
|
3,
|
|
1,
|
|
2,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"label": "idsGWithNull",
|
|
"featureCount": 255,
|
|
"nullFeatureId": 10,
|
|
"texture": {
|
|
"index": 1,
|
|
"texCoord": 0,
|
|
"channels": [
|
|
1
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"attributes": {
|
|
"POSITION": 1,
|
|
"NORMAL": 2,
|
|
"TEXCOORD_0": 3
|
|
},
|
|
"indices": 0,
|
|
"material": 0,
|
|
"mode": 4
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"nodes": [
|
|
{
|
|
"mesh": 0
|
|
}
|
|
],
|
|
"samplers": [
|
|
{
|
|
"magFilter": 9728,
|
|
"minFilter": 9728
|
|
}
|
|
],
|
|
"scene": 0,
|
|
"scenes": [
|
|
{
|
|
"nodes": [
|
|
0
|
|
]
|
|
}
|
|
],
|
|
"textures": [
|
|
{
|
|
"sampler": 0,
|
|
"source": 0
|
|
},
|
|
{
|
|
"sampler": 0,
|
|
"source": 1
|
|
}
|
|
]
|
|
}
|