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

@@ -84,47 +84,23 @@
"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_36953_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
}
}
],
@@ -141,16 +117,6 @@
},
"indices":4,
"material":0
},
{
"attributes":{
"POSITION":5,
"NORMAL":6,
"TEXCOORD_0":7,
"TANGENT":8
},
"indices":9,
"material":1
}
]
},
@@ -159,12 +125,12 @@
"primitives":[
{
"attributes":{
"POSITION":10,
"NORMAL":11,
"TEXCOORD_0":12,
"TANGENT":13
"POSITION":5,
"NORMAL":6,
"TEXCOORD_0":7,
"TANGENT":8
},
"indices":14,
"indices":9,
"material":0
}
]
@@ -174,9 +140,24 @@
"primitives":[
{
"attributes":{
"POSITION":15,
"NORMAL":16,
"TEXCOORD_0":17
"POSITION":10,
"NORMAL":11,
"TEXCOORD_0":12
},
"indices":13,
"material":0
}
]
},
{
"name":"roof.001",
"primitives":[
{
"attributes":{
"POSITION":14,
"NORMAL":15,
"TEXCOORD_0":16,
"TANGENT":17
},
"indices":18,
"material":0
@@ -184,7 +165,7 @@
]
},
{
"name":"roof.001",
"name":"roof.002",
"primitives":[
{
"attributes":{
@@ -199,7 +180,7 @@
]
},
{
"name":"roof.002",
"name":"Plane.003",
"primitives":[
{
"attributes":{
@@ -212,41 +193,44 @@
"material":0
}
]
},
{
"name":"Plane.003",
"primitives":[
{
"attributes":{
"POSITION":29,
"NORMAL":30,
"TEXCOORD_0":31,
"TANGENT":32
},
"indices":33,
"material":0
}
]
}
],
"textures":[
{
"sampler":0,
"source":0
},
{
"sampler":0,
"source":1
},
{
"sampler":0,
"source":2
}
],
"images":[
{
"mimeType":"image/png",
"name":"Atlas_36953",
"uri":"textures/Atlas_36953.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":737,
"count":805,
"max":[
6,
18,
@@ -262,70 +246,30 @@
{
"bufferView":1,
"componentType":5126,
"count":737,
"count":805,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":737,
"count":805,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5126,
"count":737,
"count":805,
"type":"VEC4"
},
{
"bufferView":4,
"componentType":5123,
"count":1512,
"count":1614,
"type":"SCALAR"
},
{
"bufferView":5,
"componentType":5126,
"count":68,
"max":[
5,
16.400001525878906,
7.69999885559082
],
"min":[
-5,
2,
-7.500001430511475
],
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":68,
"type":"VEC3"
},
{
"bufferView":7,
"componentType":5126,
"count":68,
"type":"VEC2"
},
{
"bufferView":8,
"componentType":5126,
"count":68,
"type":"VEC4"
},
{
"bufferView":9,
"componentType":5123,
"count":102,
"type":"SCALAR"
},
{
"bufferView":10,
"componentType":5126,
"count":146,
"max":[
6.099999904632568,
@@ -340,31 +284,31 @@
"type":"VEC3"
},
{
"bufferView":11,
"bufferView":6,
"componentType":5126,
"count":146,
"type":"VEC3"
},
{
"bufferView":12,
"bufferView":7,
"componentType":5126,
"count":146,
"type":"VEC2"
},
{
"bufferView":13,
"bufferView":8,
"componentType":5126,
"count":146,
"type":"VEC4"
},
{
"bufferView":14,
"bufferView":9,
"componentType":5123,
"count":258,
"type":"SCALAR"
},
{
"bufferView":15,
"bufferView":10,
"componentType":5126,
"count":72,
"max":[
@@ -380,25 +324,25 @@
"type":"VEC3"
},
{
"bufferView":16,
"bufferView":11,
"componentType":5126,
"count":72,
"type":"VEC3"
},
{
"bufferView":17,
"bufferView":12,
"componentType":5126,
"count":72,
"type":"VEC2"
},
{
"bufferView":18,
"bufferView":13,
"componentType":5123,
"count":132,
"type":"SCALAR"
},
{
"bufferView":19,
"bufferView":14,
"componentType":5126,
"count":118,
"max":[
@@ -414,31 +358,31 @@
"type":"VEC3"
},
{
"bufferView":20,
"bufferView":15,
"componentType":5126,
"count":118,
"type":"VEC3"
},
{
"bufferView":21,
"bufferView":16,
"componentType":5126,
"count":118,
"type":"VEC2"
},
{
"bufferView":22,
"bufferView":17,
"componentType":5126,
"count":118,
"type":"VEC4"
},
{
"bufferView":23,
"bufferView":18,
"componentType":5123,
"count":210,
"type":"SCALAR"
},
{
"bufferView":24,
"bufferView":19,
"componentType":5126,
"count":56,
"max":[
@@ -454,31 +398,31 @@
"type":"VEC3"
},
{
"bufferView":25,
"bufferView":20,
"componentType":5126,
"count":56,
"type":"VEC3"
},
{
"bufferView":26,
"bufferView":21,
"componentType":5126,
"count":56,
"type":"VEC2"
},
{
"bufferView":27,
"bufferView":22,
"componentType":5126,
"count":56,
"type":"VEC4"
},
{
"bufferView":28,
"bufferView":23,
"componentType":5123,
"count":102,
"type":"SCALAR"
},
{
"bufferView":29,
"bufferView":24,
"componentType":5126,
"count":40,
"max":[
@@ -494,25 +438,25 @@
"type":"VEC3"
},
{
"bufferView":30,
"bufferView":25,
"componentType":5126,
"count":40,
"type":"VEC3"
},
{
"bufferView":31,
"bufferView":26,
"componentType":5126,
"count":40,
"type":"VEC2"
},
{
"bufferView":32,
"bufferView":27,
"componentType":5126,
"count":40,
"type":"VEC4"
},
{
"bufferView":33,
"bufferView":28,
"componentType":5123,
"count":60,
"type":"SCALAR"
@@ -521,62 +465,32 @@
"bufferViews":[
{
"buffer":0,
"byteLength":8844,
"byteLength":9660,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":8844,
"byteOffset":8844,
"byteLength":9660,
"byteOffset":9660,
"target":34962
},
{
"buffer":0,
"byteLength":5896,
"byteOffset":17688,
"byteLength":6440,
"byteOffset":19320,
"target":34962
},
{
"buffer":0,
"byteLength":11792,
"byteOffset":23584,
"byteLength":12880,
"byteOffset":25760,
"target":34962
},
{
"buffer":0,
"byteLength":3024,
"byteOffset":35376,
"target":34963
},
{
"buffer":0,
"byteLength":816,
"byteOffset":38400,
"target":34962
},
{
"buffer":0,
"byteLength":816,
"byteOffset":39216,
"target":34962
},
{
"buffer":0,
"byteLength":544,
"byteOffset":40032,
"target":34962
},
{
"buffer":0,
"byteLength":1088,
"byteOffset":40576,
"target":34962
},
{
"buffer":0,
"byteLength":204,
"byteOffset":41664,
"byteLength":3228,
"byteOffset":38640,
"target":34963
},
{