瀏覽代碼

matrix mult bugfix

ncannasse 8 年之前
父節點
當前提交
cfa8b77a19
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      hxsl/HlslOut.hx

+ 6 - 0
hxsl/HlslOut.hx

@@ -290,6 +290,12 @@ class HlslOut {
 				add(",");
 				addValue(e2, tabs);
 				add(")");
+			case [OpMult, TMat3 | TMat3x4 | TMat4, TMat3 | TMat3x4 | TMat4]:
+				add("mul(");
+				addValue(e1, tabs);
+				add(",");
+				addValue(e2, tabs);
+				add(")");
 			default:
 				addValue(e1, tabs);
 				add(" ");