Sfoglia il codice sorgente

Use new layer interface

Lubos Lenco 4 anni fa
parent
commit
507ffaafd7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Sources/arm/shader/MaterialParser.hx

+ 2 - 2
Sources/arm/shader/MaterialParser.hx

@@ -1192,8 +1192,8 @@ class MaterialParser {
 		else if (node.type == "LAYER_MASK") {
 			if (socket == node.outputs[0]) {
 				var l = node.buttons[0].default_value;
-				curshader.add_uniform("sampler2D texpaint_mask" + l, "_texpaint_mask" + l);
-				return "texture(texpaint_mask" + l + ", texCoord).r";
+				curshader.add_uniform("sampler2D texpaint" + l, "_texpaint" + l);
+				return "texture(texpaint" + l + ", texCoord).r";
 			}
 		}
 		else if (node.type == "MATERIAL") {