优化,增加表情幅度

This commit is contained in:
yinsx
2025-12-27 09:22:31 +08:00
parent ea4bc6502d
commit 6e61fd81b3
4 changed files with 29 additions and 8 deletions

View File

@ -203,11 +203,11 @@ const ExpressionLibrary = {
// 从主页面获取动画速度参数
const speed = window.expressionParams?.speed || 400;
const strength = window.expressionParams?.strength ?? 1;
// 应用表情
for (const [name, value] of Object.entries(expression.blendShapes)) {
if (window.setIdleAnimation) {
window.setIdleAnimation(name, value, speed, 'easeInOutCubic');
window.setIdleAnimation(name, value * strength, speed, 'easeInOutCubic');
}
}