Explorar o código

hxsl operation between to ivec of the same size are now possible. The output is the operation done coefficient wise.

borisrp hai 2 meses
pai
achega
f30d46dc65
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      hxsl/Checker.hx

+ 1 - 0
hxsl/Checker.hx

@@ -1359,6 +1359,7 @@ class Checker {
 			case [_, TInt, TFloat]: toFloat(e1); TFloat;
 			case [_, TFloat, TInt]: toFloat(e2); TFloat;
 			case [_, TVec(a,VFloat), TVec(b,VFloat)] if( a == b ): TVec(a,VFloat);
+			case [_, TVec(a,VInt), TVec(b,VInt)] if( a == b ): TVec(a,VInt);
 			case [_, TFloat, TVec(_,VFloat)]: e2.t;
 			case [_, TVec(_,VFloat), TFloat]: e1.t;
 			case [_, TInt, TVec(_, VFloat)]: toFloat(e1); e2.t;