浏览代码

Update DepthBuffer from heaps.

clementlandrin 2 年之前
父节点
当前提交
e3659d69b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hide/prefab/terrain/TerrainEditor.hx

+ 1 - 1
hide/prefab/terrain/TerrainEditor.hx

@@ -148,7 +148,7 @@ class TerrainEditor {
 				uvTex.dispose();
 			}
 			uvTex = new h3d.mat.Texture( Std.int(h3d.Engine.getCurrent().width * uvTexRes),  Std.int(h3d.Engine.getCurrent().height * uvTexRes), [Target], RGBA32F);
-			uvTex.depthBuffer = new h3d.mat.DepthBuffer(uvTex.width, uvTex.height);
+			uvTex.depthBuffer = new h3d.mat.Texture(uvTex.width, uvTex.height, Depth24Stencil8);
 		}
 
 		var prevParent = terrainPrefab.terrain.parent;