浏览代码

Fix MeshBatch sample compilation.

clementlandrin 6 月之前
父节点
当前提交
94ecb461d4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      samples/MeshBatch.hx

+ 1 - 1
samples/MeshBatch.hx

@@ -71,7 +71,7 @@ class MeshBatch extends hxd.App {
 			batch.y = m.y;
 			batch.setScale(m.scale);
 			batch.setRotation(0,0,m.rot);
-			shader.color.load(m.color.toVec3());
+			shader.color.load(m.color.toVector());
 			batch.emitInstance();
 		}
 	}