2
0
Nicolas Cannasse 4 жил өмнө
parent
commit
75cb9688fe

+ 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;
 		});