diff options
author | Chuyan Zhang <me@zcy.moe> | 2024-10-05 23:40:53 -0700 |
---|---|---|
committer | Chuyan Zhang <me@zcy.moe> | 2024-10-05 23:40:53 -0700 |
commit | 9ed211d1ca084b25d1780da3bde19e9da64d4a4a (patch) | |
tree | f6cb6350a4999b153c4995a3b3ce3d1d71dea17f /assets/Box | |
parent | 1866dd531dffc4084dfaf261591bc7ac2a376d67 (diff) | |
download | iris-9ed211d1ca084b25d1780da3bde19e9da64d4a4a.tar.gz iris-9ed211d1ca084b25d1780da3bde19e9da64d4a4a.zip |
glTF loader start working
Diffstat (limited to 'assets/Box')
-rw-r--r-- | assets/Box/Box.gltf | 142 |
1 files changed, 142 insertions, 0 deletions
diff --git a/assets/Box/Box.gltf b/assets/Box/Box.gltf new file mode 100644 index 0000000..7f603f0 --- /dev/null +++ b/assets/Box/Box.gltf @@ -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" + } + ] +} |