Browse Source

Adding PixelFormat package

clementlandrin 5 tháng trước cách đây
mục cha
commit
e13459c946
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      h3d/pass/DirShadowMap.hx

+ 2 - 2
h3d/pass/DirShadowMap.hx

@@ -351,12 +351,12 @@ class DirShadowMap extends Shadows {
 		var texture = ctx.textures.allocTarget("dirShadowMap", size, size, false, format);
 		if( depth == null || depth.width != size || depth.height != size || depth.isDisposed() ) {
 			if( depth != null ) depth.dispose();
-			depth = new h3d.mat.Texture(size, size, Depth24Stencil8);
+			depth = new h3d.mat.Texture(size, size, hxd.PixelFormat.Depth24Stencil8);
 			depth.name = "dirShadowMapDepth";
 		}
 		texture.depthBuffer = depth;
 		#else
-		depth = ctx.textures.allocTarget("dirShadowMap", size, size, false, Depth24Stencil8);
+		depth = ctx.textures.allocTarget("dirShadowMap", size, size, false, hxd.PixelFormat.Depth24Stencil8);
 		var texture = depth;
 		#end