Skip to content

Commit

Permalink
Add proper spec files
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Apr 20, 2024
1 parent 83c920d commit 1b2778c
Show file tree
Hide file tree
Showing 3 changed files with 921 additions and 0 deletions.
299 changes: 299 additions & 0 deletions specs/data/migration/golden_gltf/Composite/Composite/composite.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,299 @@
{
"asset": {
"generator": "glTF-Transform v3.10.0",
"version": "2.0"
},
"accessors": [
{
"type": "VEC3",
"componentType": 5126,
"count": 25,
"bufferView": 0,
"byteOffset": 0
},
{
"type": "VEC4",
"componentType": 5126,
"count": 25,
"bufferView": 0,
"byteOffset": 300
},
{
"type": "VEC3",
"componentType": 5126,
"count": 25,
"bufferView": 0,
"byteOffset": 700
},
{
"type": "SCALAR",
"componentType": 5123,
"count": 25,
"bufferView": 0,
"byteOffset": 1000
},
{
"type": "VEC3",
"componentType": 5126,
"count": 240,
"max": [
108.69153594970703,
74.8784408569336,
66.49319458007812
],
"min": [
-90.89249420166016,
-86.16458892822266,
-78.88909149169922
],
"bufferView": 1,
"byteOffset": 0
},
{
"type": "VEC3",
"componentType": 5126,
"count": 240,
"bufferView": 1,
"byteOffset": 12
},
{
"type": "SCALAR",
"componentType": 5126,
"count": 240,
"bufferView": 1,
"byteOffset": 24
},
{
"type": "VEC3",
"componentType": 5126,
"count": 24,
"max": [
10.000004768371582,
10,
10.000005722045898
],
"min": [
-10.000003814697266,
-10,
-10.000003814697266
],
"bufferView": 2,
"byteOffset": 0
},
{
"type": "VEC3",
"componentType": 5126,
"count": 24,
"bufferView": 2,
"byteOffset": 12
},
{
"type": "SCALAR",
"componentType": 5123,
"count": 360,
"bufferView": 3,
"byteOffset": 0
},
{
"type": "SCALAR",
"componentType": 5123,
"count": 36,
"bufferView": 3,
"byteOffset": 720
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 1052
},
{
"buffer": 0,
"byteOffset": 1052,
"byteLength": 6720,
"byteStride": 28,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 7772,
"byteLength": 576,
"byteStride": 24,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 8348,
"byteLength": 792,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 9140,
"byteLength": 25
}
],
"buffers": [
{
"name": "buffer",
"byteLength": 9165
}
],
"materials": [
{
"pbrMetallicRoughness": {
"metallicFactor": 0
}
},
{
"pbrMetallicRoughness": {
"metallicFactor": 0
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 4,
"NORMAL": 5,
"_FEATURE_ID_0": 6
},
"mode": 4,
"material": 0,
"indices": 9,
"extensions": {
"EXT_mesh_features": {
"featureIds": [
{
"featureCount": 10,
"attribute": 0,
"propertyTable": -1
}
]
}
}
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 7,
"NORMAL": 8
},
"mode": 4,
"material": 1,
"indices": 10
}
]
}
],
"nodes": [
{
"rotation": [
-0.7071067811865475,
0,
0,
0.7071067811865476
],
"mesh": 0
},
{
"translation": [
1215012.8988049095,
4081604.3368623317,
4736313.0423059845
],
"children": [
0
]
},
{
"mesh": 1,
"extensions": {
"EXT_mesh_gpu_instancing": {
"attributes": {
"TRANSLATION": 0,
"ROTATION": 1,
"SCALE": 2,
"_FEATURE_ID_0": 3
}
},
"EXT_instance_features": {
"featureIds": [
{
"featureCount": 25,
"attribute": 0,
"propertyTable": 0
}
]
}
}
},
{
"translation": [
1215013.84,
4081608.45,
4736316.76
],
"children": [
2
]
}
],
"scenes": [
{
"nodes": [
1,
3
]
}
],
"scene": 0,
"extensionsUsed": [
"EXT_structural_metadata",
"EXT_mesh_features",
"EXT_mesh_gpu_instancing",
"EXT_instance_features"
],
"extensionsRequired": [
"EXT_mesh_gpu_instancing"
],
"extensions": {
"EXT_structural_metadata": {
"schema": {
"id": "ID_batch_table",
"name": "Generated from batch_table",
"classes": {
"class_batch_table": {
"name": "Generated from batch_table",
"properties": {
"Height": {
"name": "Height",
"description": "Generated from Height",
"type": "SCALAR",
"componentType": "UINT8",
"required": true
}
}
}
}
},
"propertyTables": [
{
"class": "class_batch_table",
"count": 25,
"properties": {
"Height": {
"values": 4
}
}
}
]
}
}
}
Loading

0 comments on commit 1b2778c

Please sign in to comment.