ws-3d: model/gltf (glTF 2.0 JSON + GLB read/write: accessors of every type incl. normalized/sparse/strided/padded matrices, PBR + KHR_materials_*, KHR_texture_transform, images kept encoded, samplers, cameras, KHR_lights_punctual, skins, animations, morph targets, KHR_mesh_quantization, extras/unknown extensions round trip); Khronos sample assets + gltfpack + assimp fixtures
Co-Authored-By: Claude Opus 5.5 <[email protected]>
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Animated Morph Cube
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,259 @@
|
||||
{
|
||||
"buffers":[
|
||||
{
|
||||
"uri":"AnimatedMorphCube.bin",
|
||||
"byteLength":1700
|
||||
}
|
||||
],
|
||||
"asset":{
|
||||
"version":"2.0",
|
||||
"generator":"gltfpack 0.13"
|
||||
},
|
||||
"extensionsUsed":[
|
||||
"KHR_mesh_quantization"
|
||||
],
|
||||
"extensionsRequired":[
|
||||
"KHR_mesh_quantization"
|
||||
],
|
||||
"bufferViews":[
|
||||
{
|
||||
"buffer":0,
|
||||
"byteOffset":0,
|
||||
"byteLength":288,
|
||||
"byteStride":4,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteOffset":288,
|
||||
"byteLength":576,
|
||||
"byteStride":8,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteOffset":864,
|
||||
"byteLength":72,
|
||||
"target":34963
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteOffset":936,
|
||||
"byteLength":508
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteOffset":1444,
|
||||
"byteLength":254
|
||||
}
|
||||
],
|
||||
"accessors":[
|
||||
{
|
||||
"bufferView":0,
|
||||
"byteOffset":0,
|
||||
"componentType":5120,
|
||||
"count":24,
|
||||
"type":"VEC3",
|
||||
"normalized":true
|
||||
},
|
||||
{
|
||||
"bufferView":1,
|
||||
"byteOffset":0,
|
||||
"componentType":5123,
|
||||
"count":24,
|
||||
"type":"VEC3",
|
||||
"min":[
|
||||
0,
|
||||
5451,
|
||||
0
|
||||
],
|
||||
"max":[
|
||||
5481,
|
||||
10932,
|
||||
5481
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":0,
|
||||
"byteOffset":96,
|
||||
"componentType":5120,
|
||||
"count":24,
|
||||
"type":"VEC3",
|
||||
"normalized":true
|
||||
},
|
||||
{
|
||||
"bufferView":1,
|
||||
"byteOffset":192,
|
||||
"componentType":5122,
|
||||
"count":24,
|
||||
"type":"VEC3",
|
||||
"min":[
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"max":[
|
||||
0,
|
||||
5188,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":0,
|
||||
"byteOffset":192,
|
||||
"componentType":5120,
|
||||
"count":24,
|
||||
"type":"VEC3",
|
||||
"normalized":true
|
||||
},
|
||||
{
|
||||
"bufferView":1,
|
||||
"byteOffset":384,
|
||||
"componentType":5122,
|
||||
"count":24,
|
||||
"type":"VEC3",
|
||||
"min":[
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"max":[
|
||||
0,
|
||||
5451,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":2,
|
||||
"byteOffset":0,
|
||||
"componentType":5123,
|
||||
"count":36,
|
||||
"type":"SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView":3,
|
||||
"byteOffset":0,
|
||||
"componentType":5126,
|
||||
"count":127,
|
||||
"type":"SCALAR",
|
||||
"min":[
|
||||
0
|
||||
],
|
||||
"max":[
|
||||
4.19999981
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":4,
|
||||
"byteOffset":0,
|
||||
"componentType":5121,
|
||||
"count":254,
|
||||
"type":"SCALAR",
|
||||
"normalized":true
|
||||
}
|
||||
],
|
||||
"materials":[
|
||||
{
|
||||
"name":"Material",
|
||||
"pbrMetallicRoughness":{
|
||||
"baseColorFactor":[
|
||||
0.603827417,
|
||||
0.603827417,
|
||||
0.603827417,
|
||||
1
|
||||
],
|
||||
"metallicFactor":0,
|
||||
"roughnessFactor":0.5
|
||||
}
|
||||
}
|
||||
],
|
||||
"meshes":[
|
||||
{
|
||||
"primitives":[
|
||||
{
|
||||
"attributes":{
|
||||
"NORMAL":0,
|
||||
"POSITION":1
|
||||
},
|
||||
"mode":4,
|
||||
"targets":[
|
||||
{
|
||||
"NORMAL":2,
|
||||
"POSITION":3
|
||||
},
|
||||
{
|
||||
"NORMAL":4,
|
||||
"POSITION":5
|
||||
}
|
||||
],
|
||||
"indices":6,
|
||||
"material":0
|
||||
}
|
||||
],
|
||||
"weights":[
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"animations":[
|
||||
{
|
||||
"name":"Square",
|
||||
"samplers":[
|
||||
{
|
||||
"input":7,
|
||||
"output":8
|
||||
}
|
||||
],
|
||||
"channels":[
|
||||
{
|
||||
"sampler":0,
|
||||
"target":{
|
||||
"node":0,
|
||||
"path":"weights"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes":[
|
||||
{
|
||||
"mesh":0,
|
||||
"translation":[
|
||||
-0.0100000044,
|
||||
-0.0298908409,
|
||||
-0.00999999978
|
||||
],
|
||||
"scale":[
|
||||
3.64900689e-06,
|
||||
3.64900689e-06,
|
||||
3.64900689e-06
|
||||
]
|
||||
},
|
||||
{
|
||||
"name":"AnimatedMorphCube",
|
||||
"rotation":[
|
||||
0,
|
||||
0.707106709,
|
||||
-0.707106829,
|
||||
0
|
||||
],
|
||||
"scale":[
|
||||
100,
|
||||
100,
|
||||
100
|
||||
],
|
||||
"children":[
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"scenes":[
|
||||
{
|
||||
"nodes":[
|
||||
1
|
||||
]
|
||||
}
|
||||
],
|
||||
"scene":0
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Animated Triangle
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"scene" : 0,
|
||||
"scenes" : [
|
||||
{
|
||||
"nodes" : [ 0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"nodes" : [
|
||||
{
|
||||
"mesh" : 0,
|
||||
"rotation" : [ 0.0, 0.0, 0.0, 1.0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"meshes" : [
|
||||
{
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 1
|
||||
},
|
||||
"indices" : 0
|
||||
} ]
|
||||
}
|
||||
],
|
||||
|
||||
"animations": [
|
||||
{
|
||||
"samplers" : [
|
||||
{
|
||||
"input" : 2,
|
||||
"interpolation" : "LINEAR",
|
||||
"output" : 3
|
||||
}
|
||||
],
|
||||
"channels" : [ {
|
||||
"sampler" : 0,
|
||||
"target" : {
|
||||
"node" : 0,
|
||||
"path" : "rotation"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
],
|
||||
|
||||
"buffers" : [
|
||||
{
|
||||
"uri" : "AnimatedTriangle_geometry.bin",
|
||||
"byteLength" : 44
|
||||
},
|
||||
{
|
||||
"uri" : "AnimatedTriangle_animation.bin",
|
||||
"byteLength" : 100
|
||||
}
|
||||
],
|
||||
"bufferViews" : [
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 6,
|
||||
"target" : 34963
|
||||
},
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 8,
|
||||
"byteLength" : 36,
|
||||
"target" : 34962
|
||||
},
|
||||
{
|
||||
"buffer" : 1,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 100
|
||||
}
|
||||
],
|
||||
"accessors" : [
|
||||
{
|
||||
"bufferView" : 0,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5123,
|
||||
"count" : 3,
|
||||
"type" : "SCALAR",
|
||||
"max" : [ 2 ],
|
||||
"min" : [ 0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 1,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5126,
|
||||
"count" : 3,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 1.0, 1.0, 0.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 2,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5126,
|
||||
"count" : 5,
|
||||
"type" : "SCALAR",
|
||||
"max" : [ 1.0 ],
|
||||
"min" : [ 0.0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 2,
|
||||
"byteOffset" : 20,
|
||||
"componentType" : 5126,
|
||||
"count" : 5,
|
||||
"type" : "VEC4",
|
||||
"max" : [ 0.0, 0.0, 1.0, 1.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0, -0.707 ]
|
||||
}
|
||||
],
|
||||
|
||||
"asset" : {
|
||||
"version" : "2.0"
|
||||
}
|
||||
|
||||
}
|
||||
|
After Width: | Height: | Size: 44 B |
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Anisotropy Strength Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Attenuation Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Box
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"asset": {
|
||||
"generator": "COLLADA2GLTF",
|
||||
"version": "2.0"
|
||||
},
|
||||
"scene": 0,
|
||||
"scenes": [
|
||||
{
|
||||
"nodes": [
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"children": [
|
||||
1
|
||||
],
|
||||
"matrix": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 0
|
||||
}
|
||||
],
|
||||
"meshes": [
|
||||
{
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 1,
|
||||
"POSITION": 2
|
||||
},
|
||||
"indices": 0,
|
||||
"mode": 4,
|
||||
"material": 0
|
||||
}
|
||||
],
|
||||
"name": "Mesh"
|
||||
}
|
||||
],
|
||||
"accessors": [
|
||||
{
|
||||
"bufferView": 0,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5123,
|
||||
"count": 36,
|
||||
"max": [
|
||||
23
|
||||
],
|
||||
"min": [
|
||||
0
|
||||
],
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 1,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"min": [
|
||||
-1.0,
|
||||
-1.0,
|
||||
-1.0
|
||||
],
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 1,
|
||||
"byteOffset": 288,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
0.5,
|
||||
0.5,
|
||||
0.5
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-0.5,
|
||||
-0.5
|
||||
],
|
||||
"type": "VEC3"
|
||||
}
|
||||
],
|
||||
"materials": [
|
||||
{
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorFactor": [
|
||||
0.800000011920929,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"metallicFactor": 0.0
|
||||
},
|
||||
"name": "Red"
|
||||
}
|
||||
],
|
||||
"bufferViews": [
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 576,
|
||||
"byteLength": 72,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 0,
|
||||
"byteLength": 576,
|
||||
"byteStride": 12,
|
||||
"target": 34962
|
||||
}
|
||||
],
|
||||
"buffers": [
|
||||
{
|
||||
"byteLength": 648,
|
||||
"uri": "Box0.bin"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Box with interleaved position and normal attributes
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,19 @@
|
||||
# LICENSE file for the model: Box Textured
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* [Cesium Trademark or Logo](../../LICENSES/LicenseRef-LegalMark-Cesium.txt)
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"asset": {
|
||||
"generator": "COLLADA2GLTF",
|
||||
"version": "2.0"
|
||||
},
|
||||
"scene": 0,
|
||||
"scenes": [
|
||||
{
|
||||
"nodes": [
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"children": [
|
||||
1
|
||||
],
|
||||
"matrix": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 0
|
||||
}
|
||||
],
|
||||
"meshes": [
|
||||
{
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 1,
|
||||
"POSITION": 2,
|
||||
"TEXCOORD_0": 3
|
||||
},
|
||||
"indices": 0,
|
||||
"mode": 4,
|
||||
"material": 0
|
||||
}
|
||||
],
|
||||
"name": "Mesh"
|
||||
}
|
||||
],
|
||||
"accessors": [
|
||||
{
|
||||
"bufferView": 0,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5123,
|
||||
"count": 36,
|
||||
"max": [
|
||||
23
|
||||
],
|
||||
"min": [
|
||||
0
|
||||
],
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 1,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"min": [
|
||||
-1.0,
|
||||
-1.0,
|
||||
-1.0
|
||||
],
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 1,
|
||||
"byteOffset": 288,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
0.5,
|
||||
0.5,
|
||||
0.5
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-0.5,
|
||||
-0.5
|
||||
],
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 2,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
6.0,
|
||||
1.0
|
||||
],
|
||||
"min": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"type": "VEC2"
|
||||
}
|
||||
],
|
||||
"materials": [
|
||||
{
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 0
|
||||
},
|
||||
"metallicFactor": 0.0
|
||||
},
|
||||
"name": "Texture"
|
||||
}
|
||||
],
|
||||
"textures": [
|
||||
{
|
||||
"sampler": 0,
|
||||
"source": 0
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"uri": "data:image/png;base64,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 truncated
|
||||
}
|
||||
],
|
||||
"samplers": [
|
||||
{
|
||||
"magFilter": 9729,
|
||||
"minFilter": 9986,
|
||||
"wrapS": 10497,
|
||||
"wrapT": 10497
|
||||
}
|
||||
],
|
||||
"bufferViews": [
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 768,
|
||||
"byteLength": 72,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 0,
|
||||
"byteLength": 576,
|
||||
"byteStride": 12,
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 576,
|
||||
"byteLength": 192,
|
||||
"byteStride": 8,
|
||||
"target": 34962
|
||||
}
|
||||
],
|
||||
"buffers": [
|
||||
{
|
||||
"byteLength": 840,
|
||||
"uri": "data:application/octet-stream;base64,AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAvwAAAL8AAAA/AAAAPwAAAL8AAAA/AAAAvwAAAD8AAAA/AAAAPwAAAD8AAAA/AAAAPwAAAD8AAAA/AAAAPwAAAL8AAAA/AAAAPwAAAD8AAAC/AAAAPwAAAL8AAAC/AAAAvwAAAD8AAAA/AAAAPwAAAD8AAAA/AAAAvwAAAD8AAAC/AAAAPwAAAD8AAAC/AAAAPwAAAL8AAAA/AAAAvwAAAL8AAAA/AAAAPwAAAL8AAAC/AAAAvwAAAL8AAAC/AAAAvwAAAL8AAAA/AAAAvwAAAD8AAAA/AAAAvwAAAL8AAAC/AAAAvwAAAD8AAAC/AAAAvwAAAL8AAAC/AAAAvwAAAD8AAAC/AAAAPwAAAL8AAAC/AAAAPwAAAD8AAAC/AADAQAAAAAAAAKBAAAAAAAAAwED+/38/AACgQP7/fz8AAIBAAAAAAAAAoEAAAAAAAACAQAAAgD8AAKBAAACAPwAAAEAAAAAAAACAPwAAAAAAAABAAACAPwAAgD8AAIA/AABAQAAAAAAAAIBAAAAAAAAAQEAAAIA/AACAQAAAgD8AAEBAAAAAAAAAAEAAAAAAAABAQAAAgD8AAABAAACAPwAAAAAAAAAAAAAAAP7/fz8AAIA/AAAAAAAAgD/+/38/AAABAAIAAwACAAEABAAFAAYABwAGAAUACAAJAAoACwAKAAkADAANAA4ADwAOAA0AEAARABIAEwASABEAFAAVABYAFwAWABUA"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"asset": {
|
||||
"generator": "COLLADA2GLTF",
|
||||
"version": "2.0"
|
||||
},
|
||||
"scene": 0,
|
||||
"scenes": [
|
||||
{
|
||||
"nodes": [
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"children": [
|
||||
1
|
||||
],
|
||||
"matrix": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 0
|
||||
}
|
||||
],
|
||||
"meshes": [
|
||||
{
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 1,
|
||||
"POSITION": 2,
|
||||
"TEXCOORD_0": 3
|
||||
},
|
||||
"indices": 0,
|
||||
"mode": 4,
|
||||
"material": 0
|
||||
}
|
||||
],
|
||||
"name": "Mesh"
|
||||
}
|
||||
],
|
||||
"accessors": [
|
||||
{
|
||||
"bufferView": 0,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5123,
|
||||
"count": 36,
|
||||
"max": [
|
||||
23
|
||||
],
|
||||
"min": [
|
||||
0
|
||||
],
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 1,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"min": [
|
||||
-1.0,
|
||||
-1.0,
|
||||
-1.0
|
||||
],
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 1,
|
||||
"byteOffset": 288,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
0.5,
|
||||
0.5,
|
||||
0.5
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-0.5,
|
||||
-0.5
|
||||
],
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 2,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
6.0,
|
||||
1.0
|
||||
],
|
||||
"min": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"type": "VEC2"
|
||||
}
|
||||
],
|
||||
"materials": [
|
||||
{
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 0
|
||||
},
|
||||
"metallicFactor": 0.0
|
||||
},
|
||||
"name": "Texture"
|
||||
}
|
||||
],
|
||||
"textures": [
|
||||
{
|
||||
"sampler": 0,
|
||||
"source": 0
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"uri": "CesiumLogoFlat.png"
|
||||
}
|
||||
],
|
||||
"samplers": [
|
||||
{
|
||||
"magFilter": 9729,
|
||||
"minFilter": 9986,
|
||||
"wrapS": 10497,
|
||||
"wrapT": 10497
|
||||
}
|
||||
],
|
||||
"bufferViews": [
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 768,
|
||||
"byteLength": 72,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 0,
|
||||
"byteLength": 576,
|
||||
"byteStride": 12,
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 576,
|
||||
"byteLength": 192,
|
||||
"byteStride": 8,
|
||||
"target": 34962
|
||||
}
|
||||
],
|
||||
"buffers": [
|
||||
{
|
||||
"byteLength": 840,
|
||||
"uri": "BoxTextured0.bin"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.7 KiB |
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Box Vertex Colors
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Cameras
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
|
After Width: | Height: | Size: 60 B |
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"scene" : 0,
|
||||
"scenes" : [
|
||||
{
|
||||
"nodes" : [ 0, 1, 2 ]
|
||||
}
|
||||
],
|
||||
"nodes" : [
|
||||
{
|
||||
"rotation" : [ -0.383, 0.0, 0.0, 0.92375 ],
|
||||
"mesh" : 0
|
||||
},
|
||||
{
|
||||
"translation" : [ 0.5, 0.5, 3.0 ],
|
||||
"camera" : 0
|
||||
},
|
||||
{
|
||||
"translation" : [ 0.5, 0.5, 3.0 ],
|
||||
"camera" : 1
|
||||
}
|
||||
],
|
||||
|
||||
"cameras" : [
|
||||
{
|
||||
"type": "perspective",
|
||||
"perspective": {
|
||||
"aspectRatio": 1.0,
|
||||
"yfov": 0.7,
|
||||
"zfar": 100,
|
||||
"znear": 0.01
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "orthographic",
|
||||
"orthographic": {
|
||||
"xmag": 1.0,
|
||||
"ymag": 1.0,
|
||||
"zfar": 100,
|
||||
"znear": 0.01
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"meshes" : [
|
||||
{
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 1
|
||||
},
|
||||
"indices" : 0
|
||||
} ]
|
||||
}
|
||||
],
|
||||
|
||||
"buffers" : [
|
||||
{
|
||||
"uri" : "Cameras.bin",
|
||||
"byteLength" : 60
|
||||
}
|
||||
],
|
||||
"bufferViews" : [
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 12,
|
||||
"target" : 34963
|
||||
},
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 12,
|
||||
"byteLength" : 48,
|
||||
"target" : 34962
|
||||
}
|
||||
],
|
||||
"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.0, 1.0, 0.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"asset" : {
|
||||
"version" : "2.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Clear Coat Car Paint
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Emissive Strength Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Interpolation Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: LightVisibility
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Mesh Primitive Modes
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,233 @@
|
||||
{
|
||||
"asset": {
|
||||
"version": "2.0"
|
||||
},
|
||||
|
||||
"scene": 0,
|
||||
"scenes": [
|
||||
{
|
||||
"nodes": [0, 1, 2, 3, 4, 5, 6]
|
||||
}
|
||||
],
|
||||
|
||||
"nodes": [
|
||||
{
|
||||
"translation": [-0, 3, 0],
|
||||
"mesh": 0
|
||||
},
|
||||
{
|
||||
"translation": [-2, 0, 0],
|
||||
"mesh": 1
|
||||
},
|
||||
{
|
||||
"translation": [0, 0, 0],
|
||||
"mesh": 2
|
||||
},
|
||||
{
|
||||
"translation": [2, 0, 0],
|
||||
"mesh": 3
|
||||
},
|
||||
{
|
||||
"translation": [-2, -3, 0],
|
||||
"mesh": 4
|
||||
},
|
||||
{
|
||||
"translation": [0, -3, 0],
|
||||
"mesh": 5
|
||||
},
|
||||
{
|
||||
"translation": [2, -3, 0],
|
||||
"mesh": 6
|
||||
}
|
||||
],
|
||||
|
||||
"meshes": [
|
||||
{
|
||||
"name": "mesh with POINTS",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 7
|
||||
},
|
||||
"indices": 0,
|
||||
"mode": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mesh with LINES",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 7
|
||||
},
|
||||
"indices": 1,
|
||||
"mode": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mesh with LINE_LOOP",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 7
|
||||
},
|
||||
"indices": 2,
|
||||
"mode": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mesh with LINE_STRIP",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 7
|
||||
},
|
||||
"indices": 3,
|
||||
"mode": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mesh with TRIANGLES",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 7
|
||||
},
|
||||
"indices": 4,
|
||||
"mode": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mesh with GL_TRIANGLE_STRIP",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 7
|
||||
},
|
||||
"indices": 5,
|
||||
"mode": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mesh with GL_TRIANGLE_FAN",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 7
|
||||
},
|
||||
"indices": 6,
|
||||
"mode": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
"buffers": [
|
||||
{
|
||||
"uri": "buffer.bin",
|
||||
"byteLength": 216
|
||||
}
|
||||
],
|
||||
"bufferViews": [
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 0,
|
||||
"byteLength": 130,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 132,
|
||||
"byteLength": 84,
|
||||
"target": 34962
|
||||
}
|
||||
],
|
||||
"accessors": [
|
||||
{
|
||||
"name": "indices for POINTS",
|
||||
"bufferView": 0,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5123,
|
||||
"count": 7,
|
||||
"type": "SCALAR",
|
||||
"max": [6],
|
||||
"min": [0]
|
||||
},
|
||||
{
|
||||
"name": "indices for LINES",
|
||||
"bufferView": 0,
|
||||
"byteOffset": 14,
|
||||
"componentType": 5123,
|
||||
"count": 12,
|
||||
"type": "SCALAR",
|
||||
"max": [6],
|
||||
"min": [0]
|
||||
},
|
||||
{
|
||||
"name": "indices for LINE_LOOP",
|
||||
"bufferView": 0,
|
||||
"byteOffset": 38,
|
||||
"componentType": 5123,
|
||||
"count": 7,
|
||||
"type": "SCALAR",
|
||||
"max": [6],
|
||||
"min": [0]
|
||||
},
|
||||
{
|
||||
"name": "indices for LINE_STRIP",
|
||||
"bufferView": 0,
|
||||
"byteOffset": 52,
|
||||
"componentType": 5123,
|
||||
"count": 7,
|
||||
"type": "SCALAR",
|
||||
"max": [6],
|
||||
"min": [0]
|
||||
},
|
||||
{
|
||||
"name": "indices for TRIANGLES",
|
||||
"bufferView": 0,
|
||||
"byteOffset": 66,
|
||||
"componentType": 5123,
|
||||
"count": 18,
|
||||
"type": "SCALAR",
|
||||
"max": [6],
|
||||
"min": [0]
|
||||
},
|
||||
{
|
||||
"name": "indices for TRIANGLE_STRIP",
|
||||
"bufferView": 0,
|
||||
"byteOffset": 102,
|
||||
"componentType": 5123,
|
||||
"count": 6,
|
||||
"type": "SCALAR",
|
||||
"max": [6],
|
||||
"min": [1]
|
||||
},
|
||||
{
|
||||
"name": "indices for TRIANGLE_FAN",
|
||||
"bufferView": 0,
|
||||
"byteOffset": 114,
|
||||
"componentType": 5123,
|
||||
"count": 8,
|
||||
"type": "SCALAR",
|
||||
"max": [6],
|
||||
"min": [0]
|
||||
},
|
||||
{
|
||||
"name": "positions",
|
||||
"bufferView": 1,
|
||||
"byteOffset": 0,
|
||||
"componentType": 5126,
|
||||
"count": 7,
|
||||
"type": "VEC3",
|
||||
"max": [0.866, 1.0, 0.0],
|
||||
"min": [-0.866, -1.0, 0.0]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 216 B |
@@ -0,0 +1,19 @@
|
||||
# LICENSE file for the model: MultiUV Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* [Khronos Trademark or Logo](../../LICENSES/LicenseRef-LegalMark-Khronos.txt)
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Multiple Scenes
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"scene" : 1,
|
||||
"scenes" : [
|
||||
{
|
||||
"nodes" : [ 0 ]
|
||||
},
|
||||
{
|
||||
"nodes" : [ 1 ]
|
||||
}
|
||||
],
|
||||
|
||||
"nodes" : [
|
||||
{
|
||||
"mesh" : 0
|
||||
},
|
||||
{
|
||||
"mesh" : 1
|
||||
}
|
||||
],
|
||||
|
||||
"meshes" : [
|
||||
{
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 1
|
||||
},
|
||||
"indices" : 0
|
||||
} ]
|
||||
},
|
||||
{
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 3
|
||||
},
|
||||
"indices" : 2
|
||||
} ]
|
||||
}
|
||||
],
|
||||
|
||||
"buffers" : [
|
||||
{
|
||||
"uri" : "MultipleScenes_triangle.bin",
|
||||
"byteLength" : 44
|
||||
},
|
||||
{
|
||||
"uri" : "MultipleScenes_square.bin",
|
||||
"byteLength" : 60
|
||||
}
|
||||
],
|
||||
"bufferViews" : [
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 6,
|
||||
"target" : 34963
|
||||
},
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 8,
|
||||
"byteLength" : 36,
|
||||
"target" : 34962
|
||||
},
|
||||
{
|
||||
"buffer" : 1,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 12,
|
||||
"target" : 34963
|
||||
},
|
||||
{
|
||||
"buffer" : 1,
|
||||
"byteOffset" : 12,
|
||||
"byteLength" : 48,
|
||||
"target" : 34962
|
||||
}
|
||||
],
|
||||
"accessors" : [
|
||||
{
|
||||
"bufferView" : 0,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5123,
|
||||
"count" : 3,
|
||||
"type" : "SCALAR",
|
||||
"max" : [ 2 ],
|
||||
"min" : [ 0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 1,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5126,
|
||||
"count" : 3,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 1.0, 1.0, 0.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 2,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5123,
|
||||
"count" : 6,
|
||||
"type" : "SCALAR",
|
||||
"max" : [ 3 ],
|
||||
"min" : [ 0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 3,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5126,
|
||||
"count" : 4,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 1.0, 1.0, 0.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"asset" : {
|
||||
"version" : "2.0"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 60 B |
|
After Width: | Height: | Size: 44 B |
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Negative Scale Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Point Light Intensity Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Rigged Simple
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Simple Meshes
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
|
After Width: | Height: | Size: 80 B |
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"scene" : 0,
|
||||
"scenes" : [
|
||||
{
|
||||
"nodes" : [ 0, 1]
|
||||
}
|
||||
],
|
||||
"nodes" : [
|
||||
{
|
||||
"mesh" : 0
|
||||
},
|
||||
{
|
||||
"mesh" : 0,
|
||||
"translation" : [ 1.0, 0.0, 0.0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"meshes" : [
|
||||
{
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 1,
|
||||
"NORMAL" : 2
|
||||
},
|
||||
"indices" : 0
|
||||
} ]
|
||||
}
|
||||
],
|
||||
|
||||
"buffers" : [
|
||||
{
|
||||
"uri" : "SimpleMeshes.bin",
|
||||
"byteLength" : 80
|
||||
}
|
||||
],
|
||||
"bufferViews" : [
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 6,
|
||||
"target" : 34963
|
||||
},
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 8,
|
||||
"byteLength" : 72,
|
||||
"byteStride" : 12,
|
||||
"target" : 34962
|
||||
}
|
||||
],
|
||||
"accessors" : [
|
||||
{
|
||||
"bufferView" : 0,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5123,
|
||||
"count" : 3,
|
||||
"type" : "SCALAR",
|
||||
"max" : [ 2 ],
|
||||
"min" : [ 0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 1,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5126,
|
||||
"count" : 3,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 1.0, 1.0, 0.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 1,
|
||||
"byteOffset" : 36,
|
||||
"componentType" : 5126,
|
||||
"count" : 3,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 0.0, 0.0, 1.0 ],
|
||||
"min" : [ 0.0, 0.0, 1.0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"asset" : {
|
||||
"version" : "2.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Simple Morph
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"scene" : 0,
|
||||
"scenes":[
|
||||
{
|
||||
"nodes":[
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes":[
|
||||
{
|
||||
"mesh":0
|
||||
}
|
||||
],
|
||||
"meshes":[
|
||||
{
|
||||
"primitives":[
|
||||
{
|
||||
"attributes":{
|
||||
"POSITION":1
|
||||
},
|
||||
"targets":[
|
||||
{
|
||||
"POSITION":2
|
||||
},
|
||||
{
|
||||
"POSITION":3
|
||||
}
|
||||
],
|
||||
"indices":0
|
||||
}
|
||||
],
|
||||
"weights":[
|
||||
0.5,
|
||||
0.5
|
||||
]
|
||||
}
|
||||
],
|
||||
"animations":[
|
||||
{
|
||||
"samplers":[
|
||||
{
|
||||
"input":4,
|
||||
"interpolation":"LINEAR",
|
||||
"output":5
|
||||
}
|
||||
],
|
||||
"channels":[
|
||||
{
|
||||
"sampler":0,
|
||||
"target":{
|
||||
"node":0,
|
||||
"path":"weights"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"buffers":[
|
||||
{
|
||||
"uri" : "SimpleMorph_geometry.bin",
|
||||
"byteLength":116
|
||||
},
|
||||
{
|
||||
"uri" : "SimpleMorph_animation.bin",
|
||||
"byteLength":60
|
||||
}
|
||||
],
|
||||
"bufferViews":[
|
||||
{
|
||||
"buffer":0,
|
||||
"byteOffset":0,
|
||||
"byteLength":6,
|
||||
"target":34963
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteOffset":8,
|
||||
"byteLength":108,
|
||||
"byteStride":12,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":1,
|
||||
"byteOffset":0,
|
||||
"byteLength":20
|
||||
},
|
||||
{
|
||||
"buffer":1,
|
||||
"byteOffset":20,
|
||||
"byteLength":40
|
||||
}
|
||||
],
|
||||
"accessors":[
|
||||
{
|
||||
"bufferView":0,
|
||||
"byteOffset":0,
|
||||
"componentType":5123,
|
||||
"count":3,
|
||||
"type":"SCALAR",
|
||||
"max":[
|
||||
2
|
||||
],
|
||||
"min":[
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":1,
|
||||
"byteOffset":0,
|
||||
"componentType":5126,
|
||||
"count":3,
|
||||
"type":"VEC3",
|
||||
"max":[
|
||||
1.0,
|
||||
0.5,
|
||||
0.0
|
||||
],
|
||||
"min":[
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":1,
|
||||
"byteOffset":36,
|
||||
"componentType":5126,
|
||||
"count":3,
|
||||
"type":"VEC3",
|
||||
"max":[
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"min":[
|
||||
-1.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":1,
|
||||
"byteOffset":72,
|
||||
"componentType":5126,
|
||||
"count":3,
|
||||
"type":"VEC3",
|
||||
"max":[
|
||||
1.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"min":[
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":2,
|
||||
"byteOffset":0,
|
||||
"componentType":5126,
|
||||
"count":5,
|
||||
"type":"SCALAR",
|
||||
"max":[
|
||||
4.0
|
||||
],
|
||||
"min":[
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"bufferView":3,
|
||||
"byteOffset":0,
|
||||
"componentType":5126,
|
||||
"count":10,
|
||||
"type":"SCALAR",
|
||||
"max":[
|
||||
1.0
|
||||
],
|
||||
"min":[
|
||||
0.0
|
||||
]
|
||||
}
|
||||
],
|
||||
"asset":{
|
||||
"version":"2.0"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 116 B |
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Simple Skin
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"scene" : 0,
|
||||
"scenes" : [ {
|
||||
"nodes" : [ 0, 1 ]
|
||||
} ],
|
||||
|
||||
"nodes" : [ {
|
||||
"skin" : 0,
|
||||
"mesh" : 0
|
||||
}, {
|
||||
"children" : [ 2 ]
|
||||
}, {
|
||||
"translation" : [ 0.0, 1.0, 0.0 ],
|
||||
"rotation" : [ 0.0, 0.0, 0.0, 1.0 ]
|
||||
} ],
|
||||
|
||||
"meshes" : [ {
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 1,
|
||||
"JOINTS_0" : 2,
|
||||
"WEIGHTS_0" : 3
|
||||
},
|
||||
"indices" : 0
|
||||
} ]
|
||||
} ],
|
||||
|
||||
"skins" : [ {
|
||||
"inverseBindMatrices" : 4,
|
||||
"joints" : [ 1, 2 ]
|
||||
} ],
|
||||
|
||||
"animations" : [ {
|
||||
"channels" : [ {
|
||||
"sampler" : 0,
|
||||
"target" : {
|
||||
"node" : 2,
|
||||
"path" : "rotation"
|
||||
}
|
||||
} ],
|
||||
"samplers" : [ {
|
||||
"input" : 5,
|
||||
"interpolation" : "LINEAR",
|
||||
"output" : 6
|
||||
} ]
|
||||
} ],
|
||||
|
||||
"buffers" : [ {
|
||||
"uri" : "SimpleSkin_geometry.bin",
|
||||
"byteLength" : 168
|
||||
}, {
|
||||
"uri" : "SimpleSkin_skinningData.bin",
|
||||
"byteLength" : 320
|
||||
}, {
|
||||
"uri" : "SimpleSkin_inverseBindMatrices.bin",
|
||||
"byteLength" : 128
|
||||
}, {
|
||||
"uri" : "SimpleSkin_animation.bin",
|
||||
"byteLength" : 240
|
||||
} ],
|
||||
|
||||
"bufferViews" : [ {
|
||||
"buffer" : 0,
|
||||
"byteLength" : 48,
|
||||
"target" : 34963
|
||||
}, {
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 48,
|
||||
"byteLength" : 120,
|
||||
"target" : 34962
|
||||
}, {
|
||||
"buffer" : 1,
|
||||
"byteLength" : 320,
|
||||
"byteStride" : 16
|
||||
}, {
|
||||
"buffer" : 2,
|
||||
"byteLength" : 128
|
||||
}, {
|
||||
"buffer" : 3,
|
||||
"byteLength" : 240
|
||||
} ],
|
||||
|
||||
"accessors" : [ {
|
||||
"bufferView" : 0,
|
||||
"componentType" : 5123,
|
||||
"count" : 24,
|
||||
"type" : "SCALAR"
|
||||
}, {
|
||||
"bufferView" : 1,
|
||||
"componentType" : 5126,
|
||||
"count" : 10,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 0.5, 2.0, 0.0 ],
|
||||
"min" : [ -0.5, 0.0, 0.0 ]
|
||||
}, {
|
||||
"bufferView" : 2,
|
||||
"componentType" : 5123,
|
||||
"count" : 10,
|
||||
"type" : "VEC4"
|
||||
}, {
|
||||
"bufferView" : 2,
|
||||
"byteOffset" : 160,
|
||||
"componentType" : 5126,
|
||||
"count" : 10,
|
||||
"type" : "VEC4"
|
||||
}, {
|
||||
"bufferView" : 3,
|
||||
"componentType" : 5126,
|
||||
"count" : 2,
|
||||
"type" : "MAT4"
|
||||
}, {
|
||||
"bufferView" : 4,
|
||||
"componentType" : 5126,
|
||||
"count" : 12,
|
||||
"type" : "SCALAR",
|
||||
"max" : [ 5.5 ],
|
||||
"min" : [ 0.0 ]
|
||||
}, {
|
||||
"bufferView" : 4,
|
||||
"byteOffset" : 48,
|
||||
"componentType" : 5126,
|
||||
"count" : 12,
|
||||
"type" : "VEC4",
|
||||
"max" : [ 0.0, 0.0, 0.707, 1.0 ],
|
||||
"min" : [ 0.0, 0.0, -0.707, 0.707 ]
|
||||
} ],
|
||||
|
||||
"asset" : {
|
||||
"version" : "2.0"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 168 B |
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Simple Sparse Accessor
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"scene" : 0,
|
||||
"scenes" : [ {
|
||||
"nodes" : [ 0 ]
|
||||
} ],
|
||||
|
||||
"nodes" : [ {
|
||||
"mesh" : 0
|
||||
} ],
|
||||
|
||||
"meshes" : [ {
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 1
|
||||
},
|
||||
"indices" : 0
|
||||
} ]
|
||||
} ],
|
||||
|
||||
"buffers" : [ {
|
||||
"uri" : "data:application/gltf-buffer;base64,AAAIAAcAAAABAAgAAQAJAAgAAQACAAkAAgAKAAkAAgADAAoAAwALAAoAAwAEAAsABAAMAAsABAAFAAwABQANAAwABQAGAA0AAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAQAAAAAAAAAAAAABAQAAAAAAAAAAAAACAQAAAAAAAAAAAAACgQAAAAAAAAAAAAADAQAAAAAAAAAAAAAAAAAAAgD8AAAAAAACAPwAAgD8AAAAAAAAAQAAAgD8AAAAAAABAQAAAgD8AAAAAAACAQAAAgD8AAAAAAACgQAAAgD8AAAAAAADAQAAAgD8AAAAACAAKAAwAAAAAAIA/AAAAQAAAAAAAAEBAAABAQAAAAAAAAKBAAACAQAAAAAA=",
|
||||
"byteLength" : 284
|
||||
} ],
|
||||
|
||||
"bufferViews" : [ {
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 72,
|
||||
"target" : 34963
|
||||
}, {
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 72,
|
||||
"byteLength" : 168
|
||||
}, {
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 240,
|
||||
"byteLength" : 6
|
||||
}, {
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 248,
|
||||
"byteLength" : 36
|
||||
} ],
|
||||
|
||||
"accessors" : [ {
|
||||
"bufferView" : 0,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5123,
|
||||
"count" : 36,
|
||||
"type" : "SCALAR",
|
||||
"max" : [ 13 ],
|
||||
"min" : [ 0 ]
|
||||
}, {
|
||||
"bufferView" : 1,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5126,
|
||||
"count" : 14,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 6.0, 4.0, 0.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0 ],
|
||||
"sparse" : {
|
||||
"count" : 3,
|
||||
"indices" : {
|
||||
"bufferView" : 2,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5123
|
||||
},
|
||||
"values" : {
|
||||
"bufferView" : 3,
|
||||
"byteOffset" : 0
|
||||
}
|
||||
}
|
||||
} ],
|
||||
|
||||
"asset" : {
|
||||
"version" : "2.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Texture Coordinate Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Texture Transform Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
|
After Width: | Height: | Size: 867 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,540 @@
|
||||
{
|
||||
"accessors": [
|
||||
{
|
||||
"bufferView": 0,
|
||||
"componentType": 5126,
|
||||
"count": 4,
|
||||
"type": "VEC3",
|
||||
"max": [
|
||||
0.5,
|
||||
0.5,
|
||||
0.0
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-0.5,
|
||||
0.0
|
||||
],
|
||||
"name": "Positions"
|
||||
},
|
||||
{
|
||||
"bufferView": 1,
|
||||
"componentType": 5126,
|
||||
"count": 4,
|
||||
"type": "VEC2",
|
||||
"name": "UV0"
|
||||
},
|
||||
{
|
||||
"bufferView": 2,
|
||||
"componentType": 5126,
|
||||
"count": 4,
|
||||
"type": "VEC2",
|
||||
"name": "UV1"
|
||||
},
|
||||
{
|
||||
"bufferView": 3,
|
||||
"componentType": 5125,
|
||||
"count": 6,
|
||||
"type": "SCALAR",
|
||||
"name": "Indices"
|
||||
}
|
||||
],
|
||||
"asset": {
|
||||
"version": "2.0"
|
||||
},
|
||||
"buffers": [
|
||||
{
|
||||
"uri": "TextureTransformTest.bin",
|
||||
"byteLength": 136
|
||||
}
|
||||
],
|
||||
"bufferViews": [
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 48,
|
||||
"name": "Positions"
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 48,
|
||||
"byteLength": 32,
|
||||
"name": "UV0"
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 80,
|
||||
"byteLength": 32,
|
||||
"name": "UV1"
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteOffset": 112,
|
||||
"byteLength": 24,
|
||||
"name": "Indices"
|
||||
}
|
||||
],
|
||||
"extensionsUsed": [
|
||||
"KHR_texture_transform"
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"uri": "UV.png"
|
||||
},
|
||||
{
|
||||
"uri": "Arrow.png"
|
||||
},
|
||||
{
|
||||
"uri": "Correct.png"
|
||||
},
|
||||
{
|
||||
"uri": "NotSupported.png"
|
||||
},
|
||||
{
|
||||
"uri": "Error.png"
|
||||
}
|
||||
],
|
||||
"materials": [
|
||||
{
|
||||
"name": "Offset U",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 0,
|
||||
"extensions": {
|
||||
"KHR_texture_transform": {
|
||||
"offset": [
|
||||
0.5,
|
||||
0.0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Offset V",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 0,
|
||||
"extensions": {
|
||||
"KHR_texture_transform": {
|
||||
"offset": [
|
||||
0.0,
|
||||
0.5
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Offset UV",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 0,
|
||||
"extensions": {
|
||||
"KHR_texture_transform": {
|
||||
"offset": [
|
||||
0.5,
|
||||
0.5
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Rotation",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 1,
|
||||
"extensions": {
|
||||
"KHR_texture_transform": {
|
||||
"rotation": 0.39269908169872415480783042290994
|
||||
}
|
||||
}
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Scale",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 1,
|
||||
"extensions": {
|
||||
"KHR_texture_transform": {
|
||||
"scale": [
|
||||
1.5,
|
||||
1.5
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "All",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 1,
|
||||
"extensions": {
|
||||
"KHR_texture_transform": {
|
||||
"offset": [
|
||||
-0.2,
|
||||
-0.1
|
||||
],
|
||||
"rotation": 0.3,
|
||||
"scale": [
|
||||
1.5,
|
||||
1.5
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Correct",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 2
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "NotSupported",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 3
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Error",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorTexture": {
|
||||
"index": 4
|
||||
},
|
||||
"metallicFactor": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"meshes": [
|
||||
{
|
||||
"name": "Offset U",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 2
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Offset V",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 2
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Offset UV",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 2
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Rotation",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 1
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Scale",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 1
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "All",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 1
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Correct Marker",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 1
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Not Supported Marker",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 1
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 7
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Error Marker",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 1
|
||||
},
|
||||
"indices": 3,
|
||||
"material": 8
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"name": "Offset U",
|
||||
"mesh": 0,
|
||||
"translation": [
|
||||
-1.1,
|
||||
0.55,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Offset V",
|
||||
"mesh": 1,
|
||||
"translation": [
|
||||
0,
|
||||
0.55,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Offset UV",
|
||||
"mesh": 2,
|
||||
"translation": [
|
||||
1.1,
|
||||
0.55,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Rotation",
|
||||
"mesh": 3,
|
||||
"translation": [
|
||||
-1.1,
|
||||
-0.55,
|
||||
0
|
||||
],
|
||||
"children": [
|
||||
4,
|
||||
5,
|
||||
6
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Rotation - Correct",
|
||||
"mesh": 6,
|
||||
"translation": [
|
||||
-0.07904822439840125109869401756656,
|
||||
-0.51626748576241543174100150833647,
|
||||
0.01
|
||||
],
|
||||
"scale": [
|
||||
0.15,
|
||||
0.15,
|
||||
0.15
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Rotation - Not Supported",
|
||||
"mesh": 7,
|
||||
"translation": [
|
||||
0.27781745930520227684092879831533,
|
||||
-0.27781745930520227684092879831533,
|
||||
0.01
|
||||
],
|
||||
"scale": [
|
||||
0.15,
|
||||
0.15,
|
||||
0.15
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Rotation - Error",
|
||||
"mesh": 8,
|
||||
"translation": [
|
||||
0.51626748576241543174100150833647,
|
||||
0.07904822439840125109869401756656,
|
||||
0.01
|
||||
],
|
||||
"scale": [
|
||||
0.15,
|
||||
0.15,
|
||||
0.15
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Scale",
|
||||
"mesh": 4,
|
||||
"translation": [
|
||||
0,
|
||||
-0.55,
|
||||
0
|
||||
],
|
||||
"children": [
|
||||
8,
|
||||
9
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Scale - Correct",
|
||||
"mesh": 6,
|
||||
"translation": [
|
||||
0.01854497287013485122728586554355,
|
||||
-0.01854497287013485122728586554355,
|
||||
0.01
|
||||
],
|
||||
"scale": [
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Scale - Not Supported",
|
||||
"mesh": 7,
|
||||
"translation": [
|
||||
0.27781745930520227684092879831533,
|
||||
-0.27781745930520227684092879831533,
|
||||
0.01
|
||||
],
|
||||
"scale": [
|
||||
0.15,
|
||||
0.15,
|
||||
0.15
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "All",
|
||||
"mesh": 5,
|
||||
"translation": [
|
||||
1.1,
|
||||
-0.55,
|
||||
0
|
||||
],
|
||||
"children": [
|
||||
11
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "All - Correct",
|
||||
"mesh": 6,
|
||||
"translation": [
|
||||
-0.07,
|
||||
-0.25,
|
||||
0.01
|
||||
],
|
||||
"scale": [
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]
|
||||
}
|
||||
],
|
||||
"scene": 0,
|
||||
"scenes": [
|
||||
{
|
||||
"nodes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
7,
|
||||
10
|
||||
]
|
||||
}
|
||||
],
|
||||
"textures": [
|
||||
{
|
||||
"source": 0,
|
||||
"sampler": 0
|
||||
},
|
||||
{
|
||||
"source": 1,
|
||||
"sampler": 0
|
||||
},
|
||||
{
|
||||
"source": 2
|
||||
},
|
||||
{
|
||||
"source": 3
|
||||
},
|
||||
{
|
||||
"source": 4
|
||||
}
|
||||
],
|
||||
"samplers": [
|
||||
{
|
||||
"wrapS": 33071,
|
||||
"wrapT": 33071,
|
||||
"magFilter": 9729,
|
||||
"minFilter": 9729
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Triangle
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"scene" : 0,
|
||||
"scenes" : [
|
||||
{
|
||||
"nodes" : [ 0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"nodes" : [
|
||||
{
|
||||
"mesh" : 0
|
||||
}
|
||||
],
|
||||
|
||||
"meshes" : [
|
||||
{
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 1
|
||||
},
|
||||
"indices" : 0
|
||||
} ]
|
||||
}
|
||||
],
|
||||
|
||||
"buffers" : [
|
||||
{
|
||||
"uri" : "data:application/octet-stream;base64,AAABAAIAAAAAAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAA=",
|
||||
"byteLength" : 44
|
||||
}
|
||||
],
|
||||
"bufferViews" : [
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 6,
|
||||
"target" : 34963
|
||||
},
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 8,
|
||||
"byteLength" : 36,
|
||||
"target" : 34962
|
||||
}
|
||||
],
|
||||
"accessors" : [
|
||||
{
|
||||
"bufferView" : 0,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5123,
|
||||
"count" : 3,
|
||||
"type" : "SCALAR",
|
||||
"max" : [ 2 ],
|
||||
"min" : [ 0 ]
|
||||
},
|
||||
{
|
||||
"bufferView" : 1,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5126,
|
||||
"count" : 3,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 1.0, 1.0, 0.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"asset" : {
|
||||
"version" : "2.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Triangle Without Indices
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"scene" : 0,
|
||||
"scenes" : [
|
||||
{
|
||||
"nodes" : [ 0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"nodes" : [
|
||||
{
|
||||
"mesh" : 0
|
||||
}
|
||||
],
|
||||
|
||||
"meshes" : [
|
||||
{
|
||||
"primitives" : [ {
|
||||
"attributes" : {
|
||||
"POSITION" : 0
|
||||
}
|
||||
} ]
|
||||
}
|
||||
],
|
||||
|
||||
"buffers" : [
|
||||
{
|
||||
"uri" : "TriangleWithoutIndices.bin",
|
||||
"byteLength" : 36
|
||||
}
|
||||
],
|
||||
"bufferViews" : [
|
||||
{
|
||||
"buffer" : 0,
|
||||
"byteOffset" : 0,
|
||||
"byteLength" : 36,
|
||||
"target" : 34962
|
||||
}
|
||||
],
|
||||
"accessors" : [
|
||||
{
|
||||
"bufferView" : 0,
|
||||
"byteOffset" : 0,
|
||||
"componentType" : 5126,
|
||||
"count" : 3,
|
||||
"type" : "VEC3",
|
||||
"max" : [ 1.0, 1.0, 0.0 ],
|
||||
"min" : [ 0.0, 0.0, 0.0 ]
|
||||
}
|
||||
],
|
||||
|
||||
"asset" : {
|
||||
"version" : "2.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Unicode❤♻Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) [SPDX license identifier: "CC0-1.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,17 @@
|
||||
# LICENSE file for the model: Unlit Test
|
||||
|
||||
All files in this directory tree are licensed as indicated below.
|
||||
|
||||
* All files directly associated with the model including all text, image and binary files:
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
* This file and all other metadocumentation files including "metadata.json":
|
||||
|
||||
* [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) [SPDX license identifier: "CC-BY-4.0"]
|
||||
|
||||
Full license text of these licenses are available at the links above.
|
||||
|
||||
This license excludes logos and associated trademarks.
|
||||
|
||||
<!-- This file is auto-generated by modelmetadata. Do not edit by hand. -->
|
||||
@@ -0,0 +1,351 @@
|
||||
-- model/gltf tests: Khronos glTF-Sample-Assets models (JSON with external / embedded buffers, GLB, sparse, interleaved,
|
||||
-- quantized, morph targets, skins, animations, cameras, lights, texture transforms, material extensions), gltfpack
|
||||
-- quantized variants and assimp's exporter output, against assimp (meshes, faces, bounds, animations, cameras,
|
||||
-- lights) and trimesh (area, triangles); full-structure round trips through GLB, embedded .gltf and external files;
|
||||
-- assimp / trimesh reading our output (gltf_xcheck); textures decoded lazily at the api layer; errors; the fuzz
|
||||
-- no-throw pass. Fixtures: tools/fixtures/gltf.py.
|
||||
local T = require("@tests/T")
|
||||
local F = require("@formats")
|
||||
local Gltf = require("@formats/model/gltf")
|
||||
local MeshOps = require("@formats/ops/MeshOps")
|
||||
local Bytes = require("@formats/core/Bytes")
|
||||
local Err = require("@formats/core/Err")
|
||||
local Types = require("@formats/Types")
|
||||
local Cases = require("@tests/gen/gltf_cases")
|
||||
local Xcheck = require("@tests/gen/gltf_xcheck")
|
||||
|
||||
local t = T.suite("gltf")
|
||||
|
||||
local function decode(data: any, opts: any?): (any, any)
|
||||
local b = if type(data) == "string" then buffer.fromstring(data) else data
|
||||
return Gltf.decode(Bytes.reader(b), opts)
|
||||
end
|
||||
|
||||
t:eq(Gltf.name, "gltf", "name")
|
||||
t:eq(Gltf.category, "model", "category")
|
||||
t:check(Gltf.caps.decode and Gltf.caps.encode and table.find(Gltf.extensions, "glb"), "contract")
|
||||
|
||||
local function near(a: number, b: number, eps: number): boolean
|
||||
return math.abs(a - b) <= eps * math.max(1, math.abs(a), math.abs(b))
|
||||
end
|
||||
|
||||
local function triArea(prim: any): number
|
||||
local pos = prim.attributes.POSITION
|
||||
local ind = prim.indices
|
||||
if not ind then
|
||||
return 0
|
||||
end
|
||||
local area = 0
|
||||
local function P(i: number, k: number): number
|
||||
return buffer.readf32(pos.data, (i * 3 + k) * 4)
|
||||
end
|
||||
for tri = 0, ind.count // 3 - 1 do
|
||||
local a, b, c = buffer.readu32(ind.data, tri * 12), buffer.readu32(ind.data, tri * 12 + 4), buffer.readu32(ind.data, tri * 12 + 8)
|
||||
local e1 = { P(b, 0) - P(a, 0), P(b, 1) - P(a, 1), P(b, 2) - P(a, 2) }
|
||||
local e2 = { P(c, 0) - P(a, 0), P(c, 1) - P(a, 1), P(c, 2) - P(a, 2) }
|
||||
local x, y, z = e1[2] * e2[3] - e1[3] * e2[2], e1[3] * e2[1] - e1[1] * e2[3], e1[1] * e2[2] - e1[2] * e2[1]
|
||||
area += math.sqrt(x * x + y * y + z * z) / 2
|
||||
end
|
||||
return area
|
||||
end
|
||||
|
||||
-- assimp's counts: one mesh per primitive, faces after strips / fans / loops are unrolled
|
||||
local function counts(scene: any): (number, number)
|
||||
local prims, faces = 0, 0
|
||||
-- the meshes of the default scene (assimp imports that one only)
|
||||
local meshes, seen = {}, {}
|
||||
for _, pl in Types.Scene.flatten(scene) do
|
||||
if not seen[pl.mesh] then
|
||||
seen[pl.mesh] = true
|
||||
table.insert(meshes, scene.meshes[pl.mesh])
|
||||
end
|
||||
end
|
||||
for _, m in meshes do
|
||||
for _, p in m.primitives do
|
||||
prims += 1
|
||||
local n = if p.indices then p.indices.count else p.attributes.POSITION.count
|
||||
local mode = p.mode
|
||||
faces += if mode == "triangles" then n // 3
|
||||
elseif mode == "triangle_strip" or mode == "triangle_fan" then math.max(n - 2, 0)
|
||||
elseif mode == "lines" then n // 2
|
||||
elseif mode == "line_strip" then math.max(n - 1, 0)
|
||||
elseif mode == "line_loop" then n
|
||||
else n
|
||||
end
|
||||
end
|
||||
return prims, faces
|
||||
end
|
||||
|
||||
-- every value of two scenes equal (buffers by content), meta skipped
|
||||
local function same(a: any, b: any, path: string, seen: { [any]: boolean }?, skip: { [string]: boolean }?): (boolean, string?)
|
||||
local s = seen or {}
|
||||
local sk = skip or { meta = true, extras = true }
|
||||
if type(a) == "buffer" and type(b) == "buffer" then
|
||||
return buffer.tostring(a) == buffer.tostring(b), path
|
||||
end
|
||||
if type(a) ~= "table" or type(b) ~= "table" then
|
||||
if type(a) == "number" and type(b) == "number" then
|
||||
return near(a, b, 1e-6), path
|
||||
end
|
||||
return a == b, path
|
||||
end
|
||||
if s[a] then
|
||||
return true, nil
|
||||
end
|
||||
s[a] = true
|
||||
for k, v in a do
|
||||
if not sk[k] then
|
||||
local ok, where = same(v, b[k], path .. "." .. tostring(k), s, sk)
|
||||
if not ok then
|
||||
return false, where
|
||||
end
|
||||
end
|
||||
end
|
||||
for k, v in b do
|
||||
if not sk[k] and a[k] == nil and v ~= nil then
|
||||
return false, path .. "." .. tostring(k) .. " (extra)"
|
||||
end
|
||||
end
|
||||
return true, nil
|
||||
end
|
||||
|
||||
local byName = {}
|
||||
local checked = { assimp = 0, trimesh = 0, roundTrips = 0 }
|
||||
for i, c in Cases do
|
||||
byName[c.name] = c
|
||||
local scene, err = decode(c.data, { files = c.files })
|
||||
t:check(scene, c.name .. ": decode: " .. tostring(err))
|
||||
local ref = if c.like then nil else c.assimp
|
||||
local prims, faces = counts(scene)
|
||||
if ref and not ref.failed then
|
||||
t:eq(prims, ref.meshes, c.name .. ": meshes (assimp)")
|
||||
t:eq(faces, ref.faces, c.name .. ": faces (assimp)")
|
||||
if ref.animations then
|
||||
t:eq(#scene.animations, ref.animations, c.name .. ": animations (assimp)")
|
||||
end
|
||||
if ref.cameras then
|
||||
t:eq(#scene.cameras, ref.cameras, c.name .. ": cameras (assimp)")
|
||||
end
|
||||
if ref.lights then
|
||||
t:eq(#scene.lights, ref.lights, c.name .. ": lights (assimp)")
|
||||
end
|
||||
checked.assimp += 1
|
||||
end
|
||||
-- trimesh: the whole scene in world space (quantized variants: against the original model, within quantization)
|
||||
local tm = if c.like then byName[c.like].trimesh else c.trimesh
|
||||
local merged = MeshOps.merge(scene)
|
||||
local onlyTriangles = true -- trimesh reads TRIANGLES primitives only (not strips / fans)
|
||||
for _, m in scene.meshes do
|
||||
for _, p in m.primitives do
|
||||
if p.mode == "triangle_strip" or p.mode == "triangle_fan" then
|
||||
onlyTriangles = false
|
||||
end
|
||||
end
|
||||
end
|
||||
-- trimesh ignores sparse accessors
|
||||
local sparse = string.find(c.data, "\"sparse\"", 1, true) ~= nil
|
||||
if tm and not tm.failed and tm.faces > 0 and onlyTriangles and not sparse then
|
||||
local eps = if c.like then 2e-3 else 1e-5
|
||||
t:eq(merged.indices.count // 3, tm.faces, c.name .. ": triangles (trimesh)")
|
||||
t:check(near(triArea(merged), tm.area, eps), string.format("%s: area %.6g, trimesh %.6g", c.name, triArea(merged), tm.area))
|
||||
local lo, hi = MeshOps.bounds(merged)
|
||||
for k = 1, 3 do
|
||||
t:check(near(lo[k], tm.bounds[k], eps * 10) and near(hi[k], tm.bounds[k + 3], eps * 10), c.name .. ": bounds (trimesh)")
|
||||
end
|
||||
checked.trimesh += 1
|
||||
end
|
||||
-- round trips: GLB, embedded .gltf, external files
|
||||
local glb, gerr = Gltf.encode(scene, { binary = true })
|
||||
t:check(glb, c.name .. ": encode glb: " .. tostring(gerr))
|
||||
local back = decode(glb)
|
||||
t:check(back, c.name .. ": decode our glb")
|
||||
local SKIP = { meta = true, extras = true, uri = true } -- embedded images lose their file names
|
||||
local ok, where = same(scene, back, "scene", nil, SKIP)
|
||||
t:check(ok, c.name .. ": glb round trip differs at " .. tostring(where))
|
||||
local text = Gltf.encode(scene) :: buffer
|
||||
local back2 = decode(text)
|
||||
local ok2, where2 = same(scene, back2, "scene", nil, SKIP)
|
||||
t:check(ok2, c.name .. ": embedded .gltf round trip differs at " .. tostring(where2))
|
||||
local files = {}
|
||||
local ext = Gltf.encode(scene, { external = true, files = files, name = "x.gltf" }) :: buffer
|
||||
t:check(files["x.bin"] ~= nil or #scene.meshes == 0, c.name .. ": external .bin")
|
||||
local back3 = decode(ext, { files = files })
|
||||
local ok3, where3 = same(scene, back3, "scene", nil, SKIP)
|
||||
t:check(ok3, c.name .. ": external .gltf round trip differs at " .. tostring(where3))
|
||||
-- writing what we read back gives the same bytes
|
||||
t:check(buffer.tostring(Gltf.encode(back, { binary = true }) :: buffer) == buffer.tostring(glb :: buffer), c.name .. ": writing is stable")
|
||||
checked.roundTrips += 1
|
||||
c.index = i
|
||||
end
|
||||
t:note("%d files: %d against assimp, %d against trimesh, %d round trips", #Cases, checked.assimp, checked.trimesh, checked.roundTrips)
|
||||
|
||||
-- the reference tools read our files like the originals
|
||||
local nx = 0
|
||||
for _, x in Xcheck do
|
||||
local c = Cases[x.case]
|
||||
local a, ca = x.assimp, c.assimp
|
||||
if not ca.failed then
|
||||
t:check(not a.failed, x.name .. ": assimp reads our file")
|
||||
t:eq(a.faces, ca.faces, x.name .. ": assimp faces of our file (" .. c.name .. ")")
|
||||
t:eq(a.meshes, ca.meshes, x.name .. ": assimp meshes of our file")
|
||||
for k = 1, 3 do
|
||||
t:check(near(a.min[k], ca.min[k], 1e-4) and near(a.max[k], ca.max[k], 1e-4), x.name .. ": assimp bounds of our file (" .. c.name .. ")")
|
||||
end
|
||||
t:eq(a.animations, ca.animations, x.name .. ": assimp animations of our file")
|
||||
t:eq(a.cameras, ca.cameras, x.name .. ": assimp cameras of our file")
|
||||
t:eq(a.lights, ca.lights, x.name .. ": assimp lights of our file")
|
||||
end
|
||||
if c.trimesh and not c.trimesh.failed and c.trimesh.faces > 0 and c.name ~= "MeshPrimitiveModes/glTF" and not string.find(c.data, "\"sparse\"", 1, true) then
|
||||
t:check(not x.trimesh.failed and near(x.trimesh.area, c.trimesh.area, 1e-5) and x.trimesh.faces == c.trimesh.faces, x.name .. ": trimesh area of our file (" .. c.name .. ")")
|
||||
end
|
||||
nx += 1
|
||||
end
|
||||
t:note("%d of our files read back by assimp / trimesh like the originals", nx)
|
||||
|
||||
-- details
|
||||
do
|
||||
local function load(name: string): any
|
||||
local c = byName[name]
|
||||
return decode(c.data, { files = c.files })
|
||||
end
|
||||
local box = load("Box/glTF")
|
||||
t:check(box.nodes[box.roots[1]].matrix ~= nil and box.meta.source.binary == false, "Box: a matrix node, JSON")
|
||||
t:check(box.materials[1].metallic == 0 and near(box.materials[1].baseColor[1], 0.8, 1e-6), "Box: material")
|
||||
local bt = load("BoxTextured/glTF")
|
||||
local tex = bt.textures[1]
|
||||
t:check(tex.uri == "CesiumLogoFlat.png" and tex.mime == "image/png" and buffer.tostring(tex.data) == byName["BoxTextured/glTF"].files["CesiumLogoFlat.png"], "BoxTextured: the image bytes from opts.files")
|
||||
t:check(tex.sampler and tex.sampler.wrapS == "repeat" and tex.sampler.minFilter == "nearest_mipmap_linear", "sampler")
|
||||
-- the api decodes textures lazily (PNG here)
|
||||
local _, terrs = F.model.loadTextures(bt)
|
||||
t:check(tex.image and tex.image.width == 256 and next(terrs) == nil, "F.model.loadTextures decodes the PNG")
|
||||
local files = {}
|
||||
local ext = Gltf.encode(bt, { external = true, files = files, name = "bt.gltf" }) :: buffer
|
||||
t:check(files["CesiumLogoFlat.png"] ~= nil and string.find(buffer.tostring(ext), "\"uri\": \"CesiumLogoFlat.png\"", 1, true) ~= nil, "external images keep their file names")
|
||||
local emb = load("BoxTextured/glTF-Embedded")
|
||||
t:check(emb.textures[1].data and buffer.tostring(emb.textures[1].data) == buffer.tostring(tex.data), "embedded data: URI image = the external file")
|
||||
local sparse = load("SimpleSparseAccessor/glTF-Embedded")
|
||||
local pos = sparse.meshes[1].primitives[1].attributes.POSITION
|
||||
local maxY = -math.huge
|
||||
for v = 0, pos.count - 1 do
|
||||
maxY = math.max(maxY, buffer.readf32(pos.data, v * 12 + 4))
|
||||
end
|
||||
t:eq(maxY, 4, "sparse values substituted (the raised vertices, max = the accessor max)")
|
||||
local cams = load("Cameras/glTF")
|
||||
t:check(#cams.cameras == 2 and cams.cameras[1].type == "perspective" and cams.cameras[2].type == "orthographic", "cameras")
|
||||
local skin = load("SimpleSkin/glTF")
|
||||
t:check(#skin.skins == 1 and #skin.skins[1].joints == 2 and skin.skins[1].inverseBindMatrices.matrix and skin.skins[1].inverseBindMatrices.components == 16, "skin")
|
||||
t:check(#skin.animations == 1 and skin.animations[1].channels[1].path == "rotation", "skin animation")
|
||||
local morph = load("SimpleMorph/glTF")
|
||||
t:check(#morph.meshes[1].primitives[1].targets == 2 and morph.meshes[1].weights[1] == 0.5, "morph targets, weights")
|
||||
local q = load("AnimatedMorphCube/glTF-Quantized")
|
||||
local qp = q.meshes[1].primitives[1]
|
||||
t:check(qp.attributes.NORMAL.type == "snorm8" and qp.targets and qp.targets[1].POSITION.type == "i16", "quantized normals / target deltas")
|
||||
local unlit = load("UnlitTest/glTF-Binary")
|
||||
t:check(unlit.materials[1].extensions and unlit.materials[1].extensions.KHR_materials_unlit ~= nil, "KHR_materials_unlit")
|
||||
local es = load("EmissiveStrengthTest/glTF-Binary")
|
||||
local strength = 0
|
||||
for _, m in es.materials do
|
||||
local e = m.extensions and m.extensions.KHR_materials_emissive_strength
|
||||
if e then
|
||||
strength = math.max(strength, e.emissiveStrength)
|
||||
end
|
||||
end
|
||||
t:check(strength > 1, "KHR_materials_emissive_strength")
|
||||
local cc = load("ClearCoatCarPaint/glTF-Binary")
|
||||
local clear = cc.materials[1].extensions and cc.materials[1].extensions.KHR_materials_clearcoat
|
||||
t:check(clear and clear.clearcoatFactor ~= nil, "KHR_materials_clearcoat")
|
||||
local tt = load("TextureTransformTest/glTF")
|
||||
local nt = 0
|
||||
for _, m in tt.materials do
|
||||
if m.baseColorTexture and m.baseColorTexture.transform then
|
||||
nt += 1
|
||||
end
|
||||
end
|
||||
t:check(nt >= 5, "KHR_texture_transform on " .. nt .. " materials")
|
||||
local lights = load("PointLightIntensityTest/glTF-Binary")
|
||||
t:check(#lights.lights > 0 and lights.lights[1].type == "point", "KHR_lights_punctual")
|
||||
local ms = load("MultipleScenes/glTF")
|
||||
t:check(#ms.meta.gltf.scenes == 2, "multiple scenes kept")
|
||||
local modes = load("MeshPrimitiveModes/glTF")
|
||||
local seen = {}
|
||||
for _, m in modes.meshes do
|
||||
for _, p in m.primitives do
|
||||
seen[p.mode] = true
|
||||
end
|
||||
end
|
||||
t:check(seen.points and seen.lines and seen.line_loop and seen.line_strip and seen.triangle_strip and seen.triangle_fan, "every primitive mode")
|
||||
local inter = load("BoxInterleaved/glTF-Binary")
|
||||
t:check(inter.meshes[1].primitives[1].attributes.NORMAL.count == 24, "interleaved (byteStride) attributes")
|
||||
-- quantized output declares KHR_mesh_quantization
|
||||
local qglb = Gltf.encode(q, { binary = true }) :: buffer
|
||||
t:check(string.find(buffer.tostring(qglb), "KHR_mesh_quantization", 1, true) ~= nil, "KHR_mesh_quantization written")
|
||||
-- a Scene made by hand (an OBJ-like mesh with u8 colours and polygons) writes and reads back
|
||||
local s = Types.Scene.new()
|
||||
local p = Types.Scene.accessor(nil, "f32", 3, 4)
|
||||
for v, xyz in { { 0, 0, 0 }, { 1, 0, 0 }, { 1, 1, 0 }, { 0, 1, 0 } } do
|
||||
for k = 1, 3 do
|
||||
buffer.writef32(p.data, ((v - 1) * 3 + k - 1) * 4, xyz[k])
|
||||
end
|
||||
end
|
||||
local col = Types.Scene.accessor(nil, "unorm8", 3, 4)
|
||||
local faces = Types.Scene.accessor(nil, "u32", 1, 1)
|
||||
buffer.writeu32(faces.data, 0, 4)
|
||||
local ind = Types.Scene.accessor(nil, "u32", 1, 4)
|
||||
for k = 0, 3 do
|
||||
buffer.writeu32(ind.data, k * 4, k)
|
||||
end
|
||||
local s2 = Types.Scene.fromPrimitive({ attributes = { POSITION = p, COLOR_0 = col }, indices = ind, faces = faces, mode = "polygons" }, "quad")
|
||||
local out = Gltf.encode(s2, { binary = true }) :: buffer
|
||||
local back = decode(out)
|
||||
t:check(back and back.meshes[1].primitives[1].indices.count == 6 and back.meshes[1].primitives[1].attributes.COLOR_0.type == "unorm8", "polygons fan-triangulated, unorm8 VEC3 colours (padded stride)")
|
||||
-- through the api: the destination's extension picks GLB
|
||||
local viaApi = F.save(s2, nil, { format = "glb" })
|
||||
t:check(viaApi and buffer.readstring(viaApi, 0, 4) == "glTF", "F.save format glb")
|
||||
local viaApi2 = F.save(s2, nil, { format = "gltf" })
|
||||
t:check(viaApi2 and buffer.readstring(viaApi2, 0, 1) == "{", "F.save format gltf")
|
||||
local loaded = F.load(viaApi)
|
||||
t:check(loaded and loaded.kind == "scene" and loaded.meta.source.format == "gltf", "F.load detects GLB")
|
||||
end
|
||||
|
||||
-- errors
|
||||
do
|
||||
local _, e = decode("{ not json")
|
||||
t:check(e and (e.code == Err.CORRUPT or e.code == Err.TRUNCATED), "bad JSON: " .. tostring(e))
|
||||
local _, e2 = decode('{"asset": {"version": "1.0"}}')
|
||||
t:check(e2 and e2.code == Err.UNSUPPORTED, "glTF 1: " .. tostring(e2))
|
||||
local _, e3 = decode('{"asset": {"version": "2.0"}, "extensionsRequired": ["KHR_draco_mesh_compression"]}')
|
||||
t:check(e3 and e3.code == Err.UNSUPPORTED, "Draco: " .. tostring(e3))
|
||||
local c = byName["Box/glTF"]
|
||||
local _, e4 = decode(c.data)
|
||||
t:check(e4 and e4.code == Err.IO, "missing .bin: " .. tostring(e4))
|
||||
local _, e5 = decode('{"asset": {"version": "2.0"}, "buffers": [{"byteLength": 4, "uri": "data:application/octet-stream;base64,AAAAAA=="}], "bufferViews": [{"buffer": 0, "byteLength": 4}], "accessors": [{"bufferView": 0, "componentType": 5126, "count": 2, "type": "SCALAR"}]}')
|
||||
t:check(e5 and e5.code == Err.CORRUPT, "accessor past its view: " .. tostring(e5))
|
||||
local glb = byName["Box/glTF-Binary"].data
|
||||
local _, e6 = decode(string.sub(glb, 1, 100))
|
||||
t:check(e6 and e6.code == Err.TRUNCATED, "truncated GLB: " .. tostring(e6))
|
||||
local _, e7 = Gltf.encode({} :: any)
|
||||
t:check(e7 and e7.code == Err.ARG, "encode junk")
|
||||
local bad = Types.Scene.fromPrimitive({ attributes = { POSITION = Types.Scene.accessor(buffer.create(4), "f32", 3, 10) }, mode = "triangles" })
|
||||
local _, e8 = Gltf.encode(bad)
|
||||
t:check(e8 and e8.code == Err.ARG, "encode a short accessor: " .. tostring(e8))
|
||||
end
|
||||
|
||||
-- fuzz
|
||||
do
|
||||
local samples = {}
|
||||
for _, c in Cases do
|
||||
if #c.data < 40000 then
|
||||
table.insert(samples, c.data)
|
||||
end
|
||||
end
|
||||
t:fuzz("decode", function(b: buffer)
|
||||
local s = Gltf.decode(Bytes.reader(b))
|
||||
if s then
|
||||
Gltf.encode(s, { binary = true })
|
||||
MeshOps.merge(s)
|
||||
end
|
||||
return s
|
||||
end, samples, { mutations = 20 })
|
||||
end
|
||||
|
||||
t:done()
|
||||