Browse Source

Update DepthBuffer from heaps.

clementlandrin 2 năm trước cách đây
mục cha
commit
e3659d69b9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;