mirror of
https://github.com/devZoGok/vb01.git
synced 2026-09-02 19:28:43 +00:00
text texture animation
This commit is contained in:
@@ -10,6 +10,8 @@ namespace vb01{
|
||||
currentValue = pastKeyframe.value;
|
||||
break;
|
||||
case Keyframe::LINEAR:
|
||||
currentValue = interpolateBezier(vector<float>({pastKeyframe.value, nextKeyframe.value}), ratio);
|
||||
break;
|
||||
case Keyframe::BEZIER:
|
||||
vector<float> points = vector<float>({pastKeyframe.value, pastKeyframe.rightHandleValue, nextKeyframe.leftHandleValue, nextKeyframe.value});
|
||||
currentValue = interpolateBezier(points, ratio);
|
||||
|
||||
Reference in New Issue
Block a user