浏览代码

set material as terrain

Nicolas Cannasse 5 年之前
父节点
当前提交
6e38469c0b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hrt/prefab/l3d/HeightMap.hx

+ 1 - 0
hrt/prefab/l3d/HeightMap.hx

@@ -148,6 +148,7 @@ class HeightMapTile {
 	public function create(mesh:HeightMapMesh) {
 		if( root != null ) throw "assert";
 		root = new h3d.scene.Mesh(mesh.grid);
+		root.material.mainPass.setPassName("terrain");
 		root.x = hmap.size * tx;
 		root.y = hmap.size * ty;