Nicolas Cannasse 2 месяцев назад
Родитель
Сommit
4665f008c7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      hrt/shgraph/ShaderGraph.hx

+ 1 - 1
hrt/shgraph/ShaderGraph.hx

@@ -674,7 +674,7 @@ class ShaderGraph extends hrt.prefab.Prefab {
 					var t = hrt.impl.TextureType.Utils.getTextureFromValue(value, Repeat);
 					var t = hrt.impl.TextureType.Utils.getTextureFromValue(value, Repeat);
 					shader.setParamValue(variable, t);
 					shader.setParamValue(variable, t);
 				case TVec(size, _):
 				case TVec(size, _):
-					shader.setParamValue(variable, h3d.Vector.fromArray(value));
+					shader.setParamValue(variable, size == 4 ? h3d.Vector4.fromArray(value) : h3d.Vector.fromArray(value));
 				default:
 				default:
 					shader.setParamValue(variable, value);
 					shader.setParamValue(variable, value);
 			}
 			}