浏览代码

fix for directx

Nicolas Cannasse 4 年之前
父节点
当前提交
75cb9688fe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/l3d/HeightMap.hx

+ 1 - 1
hrt/prefab/l3d/HeightMap.hx

@@ -618,7 +618,7 @@ class HeightMap extends Object3D {
 			}
 			indexes.push(idx);
 		}
-		var tex = new h3d.mat.TextureArray(layers[0].width, layers[0].height, layers.length, null, switch( layers[0].format ) {
+		var tex = new h3d.mat.TextureArray(layers[0].width, layers[0].height, layers.length, [Target], switch( layers[0].format ) {
 		case S3TC(_): RGBA;
 		case fmt: fmt;
 		});