Load and save level

This commit is contained in:
2020-11-28 23:25:29 +01:00
parent 483645dcc5
commit 62ec222749
13 changed files with 305 additions and 47 deletions

BIN
models/plane.bin Normal file

Binary file not shown.

Binary file not shown.

160
models/plane.gltf Normal file
View File

@@ -0,0 +1,160 @@
{
"asset" : {
"generator" : "Khronos glTF Blender I/O v1.4.40",
"version" : "2.0"
},
"scene" : 0,
"scenes" : [
{
"name" : "Scene",
"nodes" : [
0
]
}
],
"nodes" : [
{
"mesh" : 0,
"name" : "Plane"
}
],
"materials" : [
{
"doubleSided" : true,
"name" : "Material",
"normalTexture" : {
"index" : 0,
"scale" : 5,
"texCoord" : 0
},
"pbrMetallicRoughness" : {
"baseColorTexture" : {
"index" : 1,
"texCoord" : 0
},
"metallicFactor" : 0,
"roughnessFactor" : 0.5
}
}
],
"meshes" : [
{
"name" : "Plane",
"primitives" : [
{
"attributes" : {
"POSITION" : 0,
"NORMAL" : 1,
"TANGENT" : 2,
"TEXCOORD_0" : 3
},
"indices" : 4,
"material" : 0
}
]
}
],
"textures" : [
{
"sampler" : 0,
"source" : 0
},
{
"sampler" : 0,
"source" : 1
}
],
"images" : [
{
"mimeType" : "image/jpeg",
"name" : "cobblestone_large_01_nor_4k",
"uri" : "textures/cobblestone_large_01_nor_4k.jpg"
},
{
"mimeType" : "image/jpeg",
"name" : "cobblestone_large_01_diff_4k",
"uri" : "textures/cobblestone_large_01_diff_4k.jpg"
}
],
"accessors" : [
{
"bufferView" : 0,
"componentType" : 5126,
"count" : 4,
"max" : [
10,
0,
10
],
"min" : [
-10,
0,
-10
],
"type" : "VEC3"
},
{
"bufferView" : 1,
"componentType" : 5126,
"count" : 4,
"type" : "VEC3"
},
{
"bufferView" : 2,
"componentType" : 5126,
"count" : 4,
"type" : "VEC4"
},
{
"bufferView" : 3,
"componentType" : 5126,
"count" : 4,
"type" : "VEC2"
},
{
"bufferView" : 4,
"componentType" : 5123,
"count" : 6,
"type" : "SCALAR"
}
],
"bufferViews" : [
{
"buffer" : 0,
"byteLength" : 48,
"byteOffset" : 0
},
{
"buffer" : 0,
"byteLength" : 48,
"byteOffset" : 48
},
{
"buffer" : 0,
"byteLength" : 64,
"byteOffset" : 96
},
{
"buffer" : 0,
"byteLength" : 32,
"byteOffset" : 160
},
{
"buffer" : 0,
"byteLength" : 12,
"byteOffset" : 192
}
],
"samplers" : [
{
"magFilter" : 9729,
"minFilter" : 9986
}
],
"buffers" : [
{
"byteLength" : 204,
"uri" : "plane.bin"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 MiB

After

Width:  |  Height:  |  Size: 14 MiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB