mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +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