2
0
Эх сурвалжийг харах

Evaluator : Add blend case in getSum

TothBenoit 10 сар өмнө
parent
commit
be59332098

+ 3 - 0
hrt/prefab/fx/Evaluator.hx

@@ -73,6 +73,9 @@ class Evaluator {
 				return getSum(a, time) + getSum(b, time);
 			case VMult(a, VConst(b)), VMult(VConst(b), a): return getSum(a, time) * b;
 			case VZero: return 0;
+			case VBlend(a,b,v):
+				var blend = parameters[v] ?? 0.0;
+				return hxd.Math.lerp(getSum(a, time), getSum(b, time), blend);
 			default: throw "not implemented";
 		}
 		return 0.0;