Skip to content

Commit

Permalink
Fix shader code for MM 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Qendolin committed Feb 13, 2025
1 parent 1e81bac commit c11e6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/material_maker/nodes/normal2height_improved.mmg
Original file line number Diff line number Diff line change
Expand Up @@ -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;",
"}"
Expand Down

0 comments on commit c11e6d8

Please sign in to comment.