Save on draw calls

This commit is contained in:
2025-03-17 19:40:50 +03:00
parent 8e140fb878
commit ea792d8ea9
101 changed files with 2141 additions and 13712 deletions

View File

@@ -12,25 +12,13 @@
{
"name":"Scene",
"nodes":[
1
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"flat7-1-noimp",
"translation":[
0,
1,
0
]
},
{
"children":[
0
],
"mesh":1,
"name":"house3-col"
}
],
@@ -40,53 +28,29 @@
"alphaMode":"MASK",
"extensions":{
"KHR_materials_specular":{
"specularColorFactor":[
0.474271529955476,
0.474271529955476,
0.474271529955476
]
"specularColorTexture":{
"index":0
}
},
"KHR_materials_ior":{
"ior":1.4500000476837158
}
},
"name":"material_atlas_12696_1",
"name":"material_joint_atlas_1",
"pbrMetallicRoughness":{
"baseColorTexture":{
"index":0
"index":1
},
"metallicFactor":0
}
},
{
"doubleSided":true,
"emissiveFactor":[
0.42920592427253723,
0.42920592427253723,
0.42920592427253723
],
"extensions":{
"KHR_materials_specular":{
"specularColorFactor":[
1.9512351200761842,
1.9512351200761842,
1.9512351200761842
]
},
"KHR_materials_ior":{
"ior":1.4500000476837158
"metallicFactor":0,
"metallicRoughnessTexture":{
"index":2
}
},
"name":"window",
"pbrMetallicRoughness":{
"metallicFactor":0.20000000298023224,
"roughnessFactor":0.019999999552965164
}
}
],
"meshes":[
{
"name":"Plane.003",
"name":"Cube.003",
"primitives":[
{
"attributes":{
@@ -95,32 +59,8 @@
"TEXCOORD_0":2,
"TANGENT":3
},
"indices":4
}
]
},
{
"name":"Cube.003",
"primitives":[
{
"attributes":{
"POSITION":5,
"NORMAL":6,
"TEXCOORD_0":7,
"TANGENT":8
},
"indices":9,
"indices":4,
"material":0
},
{
"attributes":{
"POSITION":10,
"NORMAL":11,
"TEXCOORD_0":12,
"TANGENT":13
},
"indices":14,
"material":1
}
]
}
@@ -129,60 +69,38 @@
{
"sampler":0,
"source":0
},
{
"sampler":0,
"source":1
},
{
"sampler":0,
"source":2
}
],
"images":[
{
"mimeType":"image/png",
"name":"Atlas_12696",
"uri":"textures/Atlas_12696.png"
"name":"Image",
"uri":"textures/Image.png"
},
{
"mimeType":"image/png",
"name":"joint-atlas-1",
"uri":"textures/joint-atlas-1.png"
},
{
"mimeType":"image/png",
"name":"joint-atlas-1-roughness",
"uri":"textures/joint-atlas-1-roughness.png"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":112,
"max":[
11,
9,
11
],
"min":[
-11,
0,
-19
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":112,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":112,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5126,
"count":112,
"type":"VEC4"
},
{
"bufferView":4,
"componentType":5123,
"count":336,
"type":"SCALAR"
},
{
"bufferView":5,
"componentType":5126,
"count":1808,
"count":1835,
"max":[
12,
18,
@@ -196,159 +114,59 @@
"type":"VEC3"
},
{
"bufferView":6,
"bufferView":1,
"componentType":5126,
"count":1808,
"count":1835,
"type":"VEC3"
},
{
"bufferView":7,
"bufferView":2,
"componentType":5126,
"count":1808,
"count":1835,
"type":"VEC2"
},
{
"bufferView":8,
"bufferView":3,
"componentType":5126,
"count":1808,
"count":1835,
"type":"VEC4"
},
{
"bufferView":9,
"bufferView":4,
"componentType":5123,
"count":4368,
"type":"SCALAR"
},
{
"bufferView":10,
"componentType":5126,
"count":28,
"max":[
11.5,
10,
11.5
],
"min":[
-11.5,
2,
-8.5
],
"type":"VEC3"
},
{
"bufferView":11,
"componentType":5126,
"count":28,
"type":"VEC3"
},
{
"bufferView":12,
"componentType":5126,
"count":28,
"type":"VEC2"
},
{
"bufferView":13,
"componentType":5126,
"count":28,
"type":"VEC4"
},
{
"bufferView":14,
"componentType":5123,
"count":42,
"count":4416,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":1344,
"byteLength":22020,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":1344,
"byteOffset":1344,
"byteLength":22020,
"byteOffset":22020,
"target":34962
},
{
"buffer":0,
"byteLength":896,
"byteOffset":2688,
"byteLength":14680,
"byteOffset":44040,
"target":34962
},
{
"buffer":0,
"byteLength":1792,
"byteOffset":3584,
"byteLength":29360,
"byteOffset":58720,
"target":34962
},
{
"buffer":0,
"byteLength":672,
"byteOffset":5376,
"target":34963
},
{
"buffer":0,
"byteLength":21696,
"byteOffset":6048,
"target":34962
},
{
"buffer":0,
"byteLength":21696,
"byteOffset":27744,
"target":34962
},
{
"buffer":0,
"byteLength":14464,
"byteOffset":49440,
"target":34962
},
{
"buffer":0,
"byteLength":28928,
"byteOffset":63904,
"target":34962
},
{
"buffer":0,
"byteLength":8736,
"byteOffset":92832,
"target":34963
},
{
"buffer":0,
"byteLength":336,
"byteOffset":101568,
"target":34962
},
{
"buffer":0,
"byteLength":336,
"byteOffset":101904,
"target":34962
},
{
"buffer":0,
"byteLength":224,
"byteOffset":102240,
"target":34962
},
{
"buffer":0,
"byteLength":448,
"byteOffset":102464,
"target":34962
},
{
"buffer":0,
"byteLength":84,
"byteOffset":102912,
"byteLength":8832,
"byteOffset":88080,
"target":34963
}
],
@@ -360,7 +178,7 @@
],
"buffers":[
{
"byteLength":102996,
"byteLength":96912,
"uri":"residental-house5.bin"
}
]