From 75d7cb5331f3b13a833f5dfbd1ad6d05c2bfa10d Mon Sep 17 00:00:00 2001 From: luboslenco Date: Fri, 6 Jul 2018 18:16:10 +0200 Subject: [PATCH] Parsing height into channel --- Sources/arm/UINodes.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/arm/UINodes.hx b/Sources/arm/UINodes.hx index f581a015..1b406347 100644 --- a/Sources/arm/UINodes.hx +++ b/Sources/arm/UINodes.hx @@ -445,7 +445,9 @@ class UINodes extends iron.Trait { // frag.write('if (sp.x * brushScale < 0.0 || sp.y * brushScale < 0.0 || sp.x * brushScale > 1.0 || sp.y * brushScale > 1.0) { discard; return; }'); } + Cycles.parse_height_as_channel = true; var sout = Cycles.parse(canvas, con_paint, vert, frag, null, null, null, matcon); + Cycles.parse_height_as_channel = false; Cycles.texCoordName = 'texCoord'; var base = sout.out_basecol; var rough = sout.out_roughness;