137 lines
2.2 KiB
JSON
137 lines
2.2 KiB
JSON
{
|
|
"asset": {
|
|
"version": "2.0"
|
|
},
|
|
"extensionsUsed": [
|
|
"EXT_mesh_gpu_instancing"
|
|
],
|
|
"extensionsRequired": [
|
|
"EXT_mesh_gpu_instancing"
|
|
],
|
|
"scene": 0,
|
|
"scenes": [
|
|
{
|
|
"nodes": [
|
|
0
|
|
]
|
|
}
|
|
],
|
|
"nodes": [
|
|
{
|
|
"mesh": 0,
|
|
"extensions": {
|
|
"EXT_mesh_gpu_instancing": {
|
|
"attributes": {
|
|
"TRANSLATION": 3
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"meshes": [
|
|
{
|
|
"primitives": [
|
|
{
|
|
"attributes": {
|
|
"POSITION": 0,
|
|
"NORMAL": 1
|
|
},
|
|
"indices": 2,
|
|
"mode": 4
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"accessors": [
|
|
{
|
|
"name": "Positions",
|
|
"bufferView": 0,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"max": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"min": [
|
|
-0.5,
|
|
-0.5,
|
|
-0.5
|
|
],
|
|
"type": "VEC3"
|
|
},
|
|
{
|
|
"name": "Normals",
|
|
"bufferView": 1,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 24,
|
|
"type": "VEC3"
|
|
},
|
|
{
|
|
"name": "Indices",
|
|
"bufferView": 2,
|
|
"byteOffset": 0,
|
|
"componentType": 5123,
|
|
"count": 36,
|
|
"type": "SCALAR"
|
|
},
|
|
{
|
|
"name": "Instance Translations",
|
|
"bufferView": 3,
|
|
"byteOffset": 0,
|
|
"componentType": 5126,
|
|
"count": 4,
|
|
"type": "VEC3",
|
|
"max": [
|
|
2,
|
|
2,
|
|
0
|
|
],
|
|
"min": [
|
|
-2,
|
|
-2,
|
|
0
|
|
]
|
|
}
|
|
],
|
|
"bufferViews": [
|
|
{
|
|
"name": "Positions",
|
|
"buffer": 0,
|
|
"byteLength": 288,
|
|
"byteOffset": 0
|
|
},
|
|
{
|
|
"name": "Normals",
|
|
"buffer": 0,
|
|
"byteLength": 288,
|
|
"byteOffset": 288
|
|
},
|
|
{
|
|
"name": "Indices",
|
|
"buffer": 0,
|
|
"byteLength": 72,
|
|
"byteOffset": 576
|
|
},
|
|
{
|
|
"name": "Instance Translations",
|
|
"buffer": 1,
|
|
"byteLength": 48,
|
|
"byteOffset": 0
|
|
}
|
|
],
|
|
"buffers": [
|
|
{
|
|
"name": "Geometry Buffer",
|
|
"byteLength": 648,
|
|
"uri": "geometry.bin"
|
|
},
|
|
{
|
|
"name": "Instances Buffer",
|
|
"byteLength": 48,
|
|
"uri": "instances.bin"
|
|
}
|
|
]
|
|
} |