From c11e6d8310de9a42cdc89e6a54a25065b0132cef Mon Sep 17 00:00:00 2001 From: Qendolin <32160662+Qendolin@users.noreply.github.com> Date: Thu, 13 Feb 2025 21:22:28 +0100 Subject: [PATCH] Fix shader code for MM 1.3 --- addons/material_maker/nodes/normal2height_improved.mmg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/material_maker/nodes/normal2height_improved.mmg b/addons/material_maker/nodes/normal2height_improved.mmg index ae46ef7f4..fc925f5aa 100644 --- a/addons/material_maker/nodes/normal2height_improved.mmg +++ b/addons/material_maker/nodes/normal2height_improved.mmg @@ -127,7 +127,7 @@ "\tif(total_weight == 0.0) return $base;", "\tfloat result = total_ao / total_weight;", "\tresult = result * 0.5 + 0.5;", - "\tif($invert ^^ ($format == 0)) result = 1.0 - result;", + "\tif($invert != ($format == 0)) result = 1.0 - result;", "\tresult = ( result - 0.5 ) * $contrast + $base;", "\treturn result;", "}"