metamaker-for-three 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -436,16 +436,16 @@ async function replaceIdol(opts: string | Uint8Array) {
436
436
  }
437
437
  // MMFT.ClothPhysics.ClothPhysicManagerInstance.setClothPhysics(idol);
438
438
 
439
- idol.traverse((child) => {
440
- if (child.type == "Mesh" || child.type == "SkinnedMesh") {
441
- // child.material.envMap = envMap;
442
- const anyTing: any = child;
443
- anyTing.material.envMapIntensity = 0.3;
444
- anyTing.material.needsUpdate = true;
445
- child.castShadow = true;
446
- child.receiveShadow = true;
447
- }
448
- });
439
+ // idol.traverse((child) => {
440
+ // if (child.type == "Mesh" || child.type == "SkinnedMesh") {
441
+
442
+ // const anyTing: any = child;
443
+ // anyTing.material.envMapIntensity = 0.3;
444
+ // anyTing.material.needsUpdate = true;
445
+ // child.castShadow = true;
446
+ // child.receiveShadow = true;
447
+ // }
448
+ // });
449
449
  MMFT.core.resetPolygonOffset(idol, camera);
450
450
  mixer = new THREE.AnimationMixer(idol);
451
451
  scene.add(idol);