|
@@ -71,20 +71,20 @@ class ModelContext {
|
|
|
this.model.setGLTFModel([this.modelName]).then(async (gltf) => {
|
|
|
this.group = gltf[0];
|
|
|
if (this.group) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ const material = new THREE.MeshBasicMaterial({
|
|
|
+ color: '#000',
|
|
|
+ transparent: true,
|
|
|
+ opacity: 0.3,
|
|
|
+ side: THREE.DoubleSide,
|
|
|
+ });
|
|
|
+ [
|
|
|
+ this.group.getObjectByName('Cylinder1054'),
|
|
|
+ this.group.getObjectByName('BuErTaiJuBuFengJi_shupailie_baisezitiCylinder1054'),
|
|
|
+ this.group.getObjectByName('pCylinder1'),
|
|
|
+ ].forEach((e: THREE.Mesh) => {
|
|
|
+ e.material = material;
|
|
|
+
|
|
|
+ });
|
|
|
|
|
|
|
|
|
this.addLight();
|