Browse Source

[shgraph] Reverted alpha upcast for floats

Clément Espeute 1 year ago
parent
commit
ca74443c48
1 changed files with 1 additions and 7 deletions
  1. 1 7
      hrt/shgraph/NodeGenContext.hx

+ 1 - 7
hrt/shgraph/NodeGenContext.hx

@@ -194,13 +194,7 @@ class NodeGenContext {
 			var args = [];
 			if (sourceSize == 1) {
 				for (i in 0...targetSize) {
-					if (i == 3) {
-						// Set alpha to 1.0 by default on upcasts casts
-						args.push(makeFloat(1.0));
-					}
-					else {
-						args.push(sourceExpr);
-					}
+					args.push(sourceExpr);
 				}
 			}
 			else {