فهرست منبع

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;