@mml-io/3d-web-client-core 0.0.0-experimental-33968ac-20240319 → 0.0.0-experimental-c9d5b8c-20240319
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/build/index.js +5 -4
- package/build/index.js.map +2 -2
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -834,7 +834,7 @@ var CharacterModel = class {
|
|
|
834
834
|
}
|
|
835
835
|
setMainMesh(mainMesh) {
|
|
836
836
|
this.mesh = mainMesh;
|
|
837
|
-
this.mesh.position.set(0, -0.
|
|
837
|
+
this.mesh.position.set(0, -0.44, 0);
|
|
838
838
|
this.mesh.traverse((child) => {
|
|
839
839
|
if (child.type === "SkinnedMesh") {
|
|
840
840
|
child.castShadow = true;
|
|
@@ -909,8 +909,9 @@ var CharacterModel = class {
|
|
|
909
909
|
}
|
|
910
910
|
});
|
|
911
911
|
animationClip.tracks = animationClip.tracks.filter((track) => {
|
|
912
|
-
const trackName = track.name.split(".")
|
|
913
|
-
|
|
912
|
+
const [trackName, trackProperty] = track.name.split(".");
|
|
913
|
+
const shouldAnimate = availableBones.has(trackName) && trackProperty !== "position" && trackProperty !== "scale";
|
|
914
|
+
return shouldAnimate;
|
|
914
915
|
});
|
|
915
916
|
return animationClip;
|
|
916
917
|
}
|
|
@@ -2564,7 +2565,7 @@ var ppssaoOptions = {
|
|
|
2564
2565
|
};
|
|
2565
2566
|
var n8ssaoValues = {
|
|
2566
2567
|
enabled: true,
|
|
2567
|
-
halfRes:
|
|
2568
|
+
halfRes: true,
|
|
2568
2569
|
aoRadius: 5,
|
|
2569
2570
|
distanceFalloff: 3,
|
|
2570
2571
|
intensity: 1,
|