text texture animation

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent a4fed6f062
commit bfab74a663
6 changed files with 35 additions and 10 deletions
+2
View File
@@ -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);