mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-23 06:29:54 +08:00

This change quotes the string before it is passed into wordexp. This addresses issue https://github.com/syoyo/tinygltf/issues/236
172 lines
2.5 KiB
JSON
172 lines
2.5 KiB
JSON
{
|
|
"asset": {
|
|
"version": "2.0"
|
|
},
|
|
"scenes": [
|
|
{
|
|
"nodes": [
|
|
0
|
|
]
|
|
}
|
|
],
|
|
"scene": 0,
|
|
"nodes": [
|
|
{
|
|
"mesh": 0
|
|
}
|
|
],
|
|
"meshes": [
|
|
{
|
|
"primitives": [
|
|
{
|
|
"attributes": {
|
|
"NORMAL": 2,
|
|
"POSITION": 1,
|
|
"TEXCOORD_0": 3
|
|
},
|
|
"indices": 0,
|
|
"mode": 4,
|
|
"material": 0
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"materials": [
|
|
{
|
|
"pbrMetallicRoughness": {
|
|
"baseColorTexture": {
|
|
"index": 0,
|
|
"texCoord": 0
|
|
},
|
|
"baseColorFactor": [
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"metallicFactor": 1,
|
|
"roughnessFactor": 1
|
|
},
|
|
"emissiveFactor": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"alphaMode": "OPAQUE"
|
|
}
|
|
],
|
|
"textures": [
|
|
{
|
|
"source": 0,
|
|
"sampler": 0
|
|
}
|
|
],
|
|
"samplers": [
|
|
{
|
|
"wrapS": 33071,
|
|
"wrapT": 33071
|
|
}
|
|
],
|
|
"images": [
|
|
{
|
|
"uri": "2x2 image has spaces.png"
|
|
}
|
|
],
|
|
"accessors": [
|
|
{
|
|
"bufferView": 0,
|
|
"byteOffset": 0,
|
|
"componentType": 5121,
|
|
"count": 36,
|
|
"normalized": false,
|
|
"max": [
|
|
23
|
|
],
|
|
"min": [
|
|
0
|
|
],
|
|
"type": "SCALAR"
|
|
},
|
|
{
|
|
"bufferView": 1,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"normalized": false,
|
|
"max": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"min": [
|
|
-0.5,
|
|
-0.5,
|
|
-0.5
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
{
|
|
"bufferView": 2,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"normalized": false,
|
|
"max": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"min": [
|
|
-1,
|
|
-1,
|
|
-1
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
{
|
|
"bufferView": 3,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"normalized": false,
|
|
"max": [
|
|
1,
|
|
1
|
|
],
|
|
"min": [
|
|
0,
|
|
0
|
|
],
|
|
"type": "VEC2"
|
|
}
|
|
],
|
|
"bufferViews": [
|
|
{
|
|
"buffer": 0,
|
|
"byteOffset": 0,
|
|
"byteLength": 36
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteOffset": 36,
|
|
"byteLength": 288
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteOffset": 324,
|
|
"byteLength": 288
|
|
},
|
|
{
|
|
"buffer": 0,
|
|
"byteOffset": 612,
|
|
"byteLength": 192
|
|
}
|
|
],
|
|
"buffers": [
|
|
{
|
|
"byteLength": 804,
|
|
"uri": "CubeImageUriSpaces.bin"
|
|
}
|
|
]
|
|
}
|