Explorar o código

fix when only array texture and no base texture

Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
f1f83644ec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/pass/Default.hx

+ 1 - 1
h3d/pass/Default.hx

@@ -71,7 +71,7 @@ class Default extends Base {
 			p.shader = manager.compileShaders(shaders, p.pass.batchMode);
 			p.shaders = shaders;
 			var t = p.shader.fragment.textures;
-			if( t == null )
+			if( t == null || t.type.match(TArray(_)) )
 				p.texture = 0;
 			else {
 				var t : h3d.mat.Texture = manager.getParamValue(t, shaders, true);