优化,增加表情幅度
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user