diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-12 14:31:09 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-12 14:31:09 -0400 |
| commit | b4ba9eb4f1fe02d65945a263beb3185a617a414b (patch) | |
| tree | bc53bafd81c989b555792171eb9c505f08984aff /assets | |
| parent | e6d5d4ff0dd3d3640860c23034955ff6db149827 (diff) | |
load gltf files - no shaders yet
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/models/cube.bin | bin | 0 -> 840 bytes | |||
| -rw-r--r-- | assets/models/cube.gltf | 121 |
2 files changed, 121 insertions, 0 deletions
diff --git a/assets/models/cube.bin b/assets/models/cube.bin Binary files differnew file mode 100644 index 0000000..c59221c --- /dev/null +++ b/assets/models/cube.bin diff --git a/assets/models/cube.gltf b/assets/models/cube.gltf new file mode 100644 index 0000000..5077394 --- /dev/null +++ b/assets/models/cube.gltf @@ -0,0 +1,121 @@ +{ + "asset":{ + "generator":"Khronos glTF Blender I/O v3.6.27", + "version":"2.0" + }, + "scene":0, + "scenes":[ + { + "name":"Scene", + "nodes":[ + 0 + ] + } + ], + "nodes":[ + { + "mesh":0, + "name":"Cube" + } + ], + "materials":[ + { + "doubleSided":true, + "name":"Material", + "pbrMetallicRoughness":{ + "baseColorFactor":[ + 0.800000011920929, + 0.800000011920929, + 0.800000011920929, + 1 + ], + "metallicFactor":0, + "roughnessFactor":0.5 + } + } + ], + "meshes":[ + { + "name":"Cube", + "primitives":[ + { + "attributes":{ + "POSITION":0, + "NORMAL":1, + "TEXCOORD_0":2 + }, + "indices":3, + "material":0 + } + ] + } + ], + "accessors":[ + { + "bufferView":0, + "componentType":5126, + "count":24, + "max":[ + 1, + 1, + 1 + ], + "min":[ + -1, + -1, + -1 + ], + "type":"VEC3" + }, + { + "bufferView":1, + "componentType":5126, + "count":24, + "type":"VEC3" + }, + { + "bufferView":2, + "componentType":5126, + "count":24, + "type":"VEC2" + }, + { + "bufferView":3, + "componentType":5123, + "count":36, + "type":"SCALAR" + } + ], + "bufferViews":[ + { + "buffer":0, + "byteLength":288, + "byteOffset":0, + "target":34962 + }, + { + "buffer":0, + "byteLength":288, + "byteOffset":288, + "target":34962 + }, + { + "buffer":0, + "byteLength":192, + "byteOffset":576, + "target":34962 + }, + { + "buffer":0, + "byteLength":72, + "byteOffset":768, + "target":34963 + } + ], + "buffers":[ + { + "byteLength":840, + "uri":"cube.bin" + } + ] +} |
