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

@@ -33,47 +33,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
}
}
],
@@ -89,15 +65,6 @@
},
"indices":3,
"material":0
},
{
"attributes":{
"POSITION":4,
"NORMAL":5,
"TEXCOORD_0":6
},
"indices":7,
"material":1
}
]
},
@@ -106,12 +73,12 @@
"primitives":[
{
"attributes":{
"POSITION":8,
"NORMAL":9,
"TEXCOORD_0":10,
"TANGENT":11
"POSITION":4,
"NORMAL":5,
"TEXCOORD_0":6,
"TANGENT":7
},
"indices":12,
"indices":8,
"material":0
}
]
@@ -121,20 +88,38 @@
{
"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":889,
"count":905,
"max":[
20,
7,
@@ -150,58 +135,24 @@
{
"bufferView":1,
"componentType":5126,
"count":889,
"count":905,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":889,
"count":905,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":2238,
"count":2262,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":16,
"max":[
9,
5,
3.75
],
"min":[
3,
2,
-3.7577943801879883
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":16,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":16,
"type":"VEC2"
},
{
"bufferView":7,
"componentType":5123,
"count":24,
"type":"SCALAR"
},
{
"bufferView":8,
"componentType":5126,
"count":142,
"max":[
16.39999771118164,
@@ -216,25 +167,25 @@
"type":"VEC3"
},
{
"bufferView":9,
"bufferView":5,
"componentType":5126,
"count":142,
"type":"VEC3"
},
{
"bufferView":10,
"bufferView":6,
"componentType":5126,
"count":142,
"type":"VEC2"
},
{
"bufferView":11,
"bufferView":7,
"componentType":5126,
"count":142,
"type":"VEC4"
},
{
"bufferView":12,
"bufferView":8,
"componentType":5123,
"count":378,
"type":"SCALAR"
@@ -243,50 +194,26 @@
"bufferViews":[
{
"buffer":0,
"byteLength":10668,
"byteLength":10860,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":10668,
"byteOffset":10668,
"byteLength":10860,
"byteOffset":10860,
"target":34962
},
{
"buffer":0,
"byteLength":7112,
"byteOffset":21336,
"byteLength":7240,
"byteOffset":21720,
"target":34962
},
{
"buffer":0,
"byteLength":4476,
"byteOffset":28448,
"target":34963
},
{
"buffer":0,
"byteLength":192,
"byteOffset":32924,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":33116,
"target":34962
},
{
"buffer":0,
"byteLength":128,
"byteOffset":33308,
"target":34962
},
{
"buffer":0,
"byteLength":48,
"byteOffset":33436,
"byteLength":4524,
"byteOffset":28960,
"target":34963
},
{