预览模式修复+模型颜色更改

This commit is contained in:
Hcat
2024-01-11 23:16:16 +08:00
parent 41e6c78d1e
commit 6b8dd71c9d
3 changed files with 19652 additions and 225 deletions

View File

@@ -7,7 +7,27 @@
{
"name": "Scene",
"nodes": [
269
248,
249,
250,
251,
252,
253,
254,
255,
256,
257,
258,
259,
260,
261,
262,
263,
264,
265,
266,
267,
268
]
}
],
@@ -6049,7 +6069,7 @@
]
},
{
"name": "chanelgltf_1",
"name": "chanelgltf",
"extras": {
"name": "chanel.gltf"
},
@@ -6058,10 +6078,7 @@
]
},
{
"name": "chanelgltf",
"extras": {
"name": "chanel.gltf"
},
"name": "chanel.gltf",
"children": [
247
]
@@ -6076,9 +6093,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.05539575645377058,
5.599639454135268,
@@ -6086,9 +6103,6 @@
1
],
"name": "wall_01",
"extras": {
"name": "wall_01"
},
"mesh": 123
},
{
@@ -6101,9 +6115,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.639254564638573,
@@ -6111,9 +6125,6 @@
1
],
"name": "wall_02",
"extras": {
"name": "wall_02"
},
"mesh": 124
},
{
@@ -6126,9 +6137,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6136,9 +6147,6 @@
1
],
"name": "wall_03",
"extras": {
"name": "wall_03"
},
"mesh": 125
},
{
@@ -6151,9 +6159,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6161,9 +6169,6 @@
1
],
"name": "wall_04",
"extras": {
"name": "wall_04"
},
"mesh": 126
},
{
@@ -6176,9 +6181,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6186,9 +6191,6 @@
1
],
"name": "wall_05",
"extras": {
"name": "wall_05"
},
"mesh": 127
},
{
@@ -6201,9 +6203,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6211,9 +6213,6 @@
1
],
"name": "wall_06",
"extras": {
"name": "wall_06"
},
"mesh": 128
},
{
@@ -6226,9 +6225,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6236,9 +6235,6 @@
1
],
"name": "wall_07",
"extras": {
"name": "wall_07"
},
"mesh": 129
},
{
@@ -6251,9 +6247,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6261,9 +6257,6 @@
1
],
"name": "wall_08",
"extras": {
"name": "wall_08"
},
"mesh": 130
},
{
@@ -6276,9 +6269,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6286,9 +6279,6 @@
1
],
"name": "wall_09",
"extras": {
"name": "wall_09"
},
"mesh": 131
},
{
@@ -6301,9 +6291,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6311,9 +6301,6 @@
1
],
"name": "wall_10",
"extras": {
"name": "wall_10"
},
"mesh": 132
},
{
@@ -6326,9 +6313,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6336,9 +6323,6 @@
1
],
"name": "wall_11",
"extras": {
"name": "wall_11"
},
"mesh": 133
},
{
@@ -6351,9 +6335,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6361,9 +6345,6 @@
1
],
"name": "wall_12",
"extras": {
"name": "wall_12"
},
"mesh": 134
},
{
@@ -6376,9 +6357,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6386,9 +6367,6 @@
1
],
"name": "wall_13",
"extras": {
"name": "wall_13"
},
"mesh": 135
},
{
@@ -6401,9 +6379,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6411,9 +6389,6 @@
1
],
"name": "wall_14",
"extras": {
"name": "wall_14"
},
"mesh": 136
},
{
@@ -6426,9 +6401,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6436,9 +6411,6 @@
1
],
"name": "wall_15",
"extras": {
"name": "wall_15"
},
"mesh": 137
},
{
@@ -6451,9 +6423,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6461,9 +6433,6 @@
1
],
"name": "wall_16",
"extras": {
"name": "wall_16"
},
"mesh": 138
},
{
@@ -6476,9 +6445,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6486,9 +6455,6 @@
1
],
"name": "wall_17",
"extras": {
"name": "wall_17"
},
"mesh": 139
},
{
@@ -6501,9 +6467,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6511,9 +6477,6 @@
1
],
"name": "wall_18",
"extras": {
"name": "wall_18"
},
"mesh": 140
},
{
@@ -6526,9 +6489,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6536,9 +6499,6 @@
1
],
"name": "wall_19",
"extras": {
"name": "wall_19"
},
"mesh": 141
},
{
@@ -6551,9 +6511,9 @@
1,
0,
0,
0.01,
1,
0,
2.220446049250313e-18,
2.220446049250313e-16,
0,
0.055,
5.6,
@@ -6561,36 +6521,7 @@
1
],
"name": "wall_20",
"extras": {
"name": "wall_20"
},
"mesh": 142
},
{
"name": "chanel-have-wall.gltf",
"children": [
248,
249,
250,
251,
252,
253,
254,
255,
256,
257,
258,
259,
260,
261,
262,
263,
264,
265,
266,
267,
268
]
}
],
"bufferViews": [
@@ -16194,9 +16125,9 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
1,
0.22322795730611386,
0.9301108583738498,
0.7011018919268015,
0.5
],
"metallicFactor": 0,
@@ -16210,9 +16141,9 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
1,
0.22322795730611386,
0.9301108583738498,
0.85499260812105,
0.5
],
"metallicFactor": 0,
@@ -16226,9 +16157,9 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
1,
0.22322795730611386,
0.9301108583738498,
0.85499260812105,
0.5
],
"metallicFactor": 0,
@@ -16242,9 +16173,9 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
1,
0.22322795730611386,
0.9301108583738498,
0.85499260812105,
0.5
],
"metallicFactor": 0,
@@ -17311,15 +17242,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17327,15 +17257,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17343,15 +17272,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17359,15 +17287,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17375,15 +17302,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17391,15 +17317,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17407,15 +17332,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17423,15 +17347,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17439,15 +17362,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17455,15 +17377,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17471,15 +17392,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17487,15 +17407,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17503,15 +17422,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17519,15 +17437,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17535,15 +17452,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17551,15 +17467,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17567,15 +17482,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17583,15 +17497,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17599,15 +17512,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}
@@ -17615,15 +17527,14 @@
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36625259558833256,
0.8468732315065057,
0.3813260114221238,
1,
0.5
0,
1
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"alphaMode": "BLEND",
"extensions": {
"KHR_materials_unlit": {}
}

File diff suppressed because one or more lines are too long

View File

@@ -136,7 +136,7 @@ export default class Demo {
return new Promise((resolve, reject) => {
this.gltfloader = new GLTFLoader();
this.gltfloader.load(
"/tunnelModel/chanel-have-wall.gltf",
"/tunnelModel/chanel-have-wall修改版.gltf",
(gltf) => {
gltf.scene.traverse((child) => {
this._forModels(child);