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;