mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-21 21:49:56 +08:00
225 lines
3.5 KiB
JSON
225 lines
3.5 KiB
JSON
{
|
|
"accessors": [
|
|
{
|
|
"bufferView": 0,
|
|
"byteOffset": 0,
|
|
"componentType": 5123,
|
|
"count": 36,
|
|
"max": [
|
|
35
|
|
],
|
|
"min": [
|
|
0
|
|
],
|
|
"type": "SCALAR"
|
|
},
|
|
{
|
|
"bufferView": 1,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 36,
|
|
"max": [
|
|
1,
|
|
1,
|
|
1.000001
|
|
],
|
|
"min": [
|
|
-1,
|
|
-1,
|
|
-1
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
{
|
|
"bufferView": 2,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 36,
|
|
"max": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"min": [
|
|
-1,
|
|
-1,
|
|
-1
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
{
|
|
"bufferView": 3,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 36,
|
|
"max": [
|
|
1,
|
|
-0,
|
|
-0,
|
|
1
|
|
],
|
|
"min": [
|
|
0,
|
|
-0,
|
|
-1,
|
|
-1
|
|
],
|
|
"type": "VEC4"
|
|
},
|
|
{
|
|
"bufferView": 4,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 36,
|
|
"max": [
|
|
1,
|
|
1
|
|
],
|
|
"min": [
|
|
-1,
|
|
-1
|
|
],
|
|
"type": "VEC2"
|
|
}
|
|
],
|
|
"asset": {
|
|
"generator": "VKTS glTF 2.0 exporter",
|
|
"version": "2.0"
|
|
},
|
|
"bufferViews": [
|
|
{
|
|
"buffer": 0,
|
|
"byteLength": 72,
|
|
"byteOffset": 0,
|
|
"target": 34963
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteLength": 432,
|
|
"byteOffset": 72,
|
|
"target": 34962
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteLength": 432,
|
|
"byteOffset": 504,
|
|
"target": 34962
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteLength": 576,
|
|
"byteOffset": 936,
|
|
"target": 34962
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteLength": 288,
|
|
"byteOffset": 1512,
|
|
"target": 34962
|
|
}
|
|
],
|
|
"buffers": [
|
|
{
|
|
"byteLength": 1800,
|
|
"uri": "Cube.bin"
|
|
}
|
|
],
|
|
"images": [
|
|
{
|
|
"0comment": "Use Cube_MetallicRoughness.png to reduce scene filesize",
|
|
"uri": "Cube_MetallicRoughness.png"
|
|
},
|
|
{
|
|
"uri": "Cube_MetallicRoughness.png"
|
|
}
|
|
],
|
|
"materials": [
|
|
{
|
|
"emissiveTexture": {
|
|
"index": 0,
|
|
"extensions": {
|
|
"KHR_texture_transform": {
|
|
"offset": [
|
|
0,
|
|
1
|
|
],
|
|
"scale": [
|
|
1,
|
|
-1
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Cube",
|
|
"pbrMetallicRoughness": {
|
|
"baseColorTexture": {
|
|
"index": 0
|
|
},
|
|
"metallicRoughnessTexture": {
|
|
"index": 1,
|
|
"extensions": {
|
|
"KHR_texture_transform": {
|
|
"offset": [
|
|
0,
|
|
1
|
|
],
|
|
"rotation": 1.57079632679,
|
|
"scale": [
|
|
0.5,
|
|
0.5
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"meshes": [
|
|
{
|
|
"name": "Cube",
|
|
"primitives": [
|
|
{
|
|
"attributes": {
|
|
"NORMAL": 2,
|
|
"POSITION": 1,
|
|
"TANGENT": 3,
|
|
"TEXCOORD_0": 4
|
|
},
|
|
"indices": 0,
|
|
"material": 0,
|
|
"mode": 4
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"nodes": [
|
|
{
|
|
"mesh": 0,
|
|
"name": "Cube"
|
|
}
|
|
],
|
|
"samplers": [
|
|
{}
|
|
],
|
|
"scene": 0,
|
|
"scenes": [
|
|
{
|
|
"nodes": [
|
|
0
|
|
]
|
|
}
|
|
],
|
|
"textures": [
|
|
{
|
|
"sampler": 0,
|
|
"source": 0
|
|
},
|
|
{
|
|
"sampler": 0,
|
|
"source": 1
|
|
}
|
|
]
|
|
}
|