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.
- package/examples/example.ts +10 -10
- package/libs/metamaker-for-three.js +1 -1
- package/package.json +2 -1
- package/src/lib/core/index.ts +202 -25
- package/src/lib/core/utils/ResetMaterial.ts +257 -257
- package/src/lib/core/utils/convert.ts +138 -12
- package/src/lib/core/utils/downloadAnimation.ts +14 -5
- package/types/core/index.d.ts +8 -2
- package/types/core/utils/ResetMaterial.d.ts +1 -2
- package/types/core/utils/convert.d.ts +4 -0
package/examples/example.ts
CHANGED
|
@@ -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
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
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);
|