mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 09:06:16 +02:00
set idleOverlayAlpha animVar for backward compatibility with older graphs
This commit is contained in:
parent
5d405cac3b
commit
f1c47db53c
1 changed files with 4 additions and 0 deletions
|
@ -2112,8 +2112,10 @@ void Rig::updateFromControllerParameters(const ControllerParameters& params, flo
|
|||
}
|
||||
float easeOutInValue = _talkIdleInterpTime < 0.5f ? 4.0f * powf(_talkIdleInterpTime, 3.0f) : 4.0f * powf((_talkIdleInterpTime - 1.0f), 3.0f) + 1.0f;
|
||||
_animVars.set("talkOverlayAlpha", easeOutInValue);
|
||||
_animVars.set("idleOverlayAlpha", easeOutInValue); // backward compatibility for older anim graphs.
|
||||
} else {
|
||||
_animVars.set("talkOverlayAlpha", 1.0f);
|
||||
_animVars.set("idleOverlayAlpha", 1.0f); // backward compatibility for older anim graphs.
|
||||
}
|
||||
} else {
|
||||
if (_talkIdleInterpTime < 1.0f) {
|
||||
|
@ -2124,8 +2126,10 @@ void Rig::updateFromControllerParameters(const ControllerParameters& params, flo
|
|||
float easeOutInValue = _talkIdleInterpTime < 0.5f ? 4.0f * powf(_talkIdleInterpTime, 3.0f) : 4.0f * powf((_talkIdleInterpTime - 1.0f), 3.0f) + 1.0f;
|
||||
float talkAlpha = 1.0f - easeOutInValue;
|
||||
_animVars.set("talkOverlayAlpha", talkAlpha);
|
||||
_animVars.set("idleOverlayAlpha", talkAlpha); // backward compatibility for older anim graphs.
|
||||
} else {
|
||||
_animVars.set("talkOverlayAlpha", 0.0f);
|
||||
_animVars.set("idleOverlayAlpha", 0.0f); // backward compatibility for older anim graphs.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue