浏览代码

Add face culling for Terrain

ShiroSmith 6 年之前
父节点
当前提交
fde429667a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/terrain/Tile.hx

+ 1 - 1
hrt/prefab/terrain/Tile.hx

@@ -30,7 +30,7 @@ class Tile extends h3d.scene.Mesh {
 		this.tileY = y;
 		shader = new hrt.shader.Terrain();
 		material.mainPass.addShader(shader);
-		material.mainPass.culling = None;
+		material.mainPass.culling = Back;
 		material.shadows = false;
 		this.x = x * terrain.tileSize;
 		this.y = y * terrain.tileSize;