From b8ed5658c1e6f231cb1f1efdc9d1bdd6a1061ad6 Mon Sep 17 00:00:00 2001 From: LMW Date: Thu, 19 Oct 2023 13:16:21 +0800 Subject: [PATCH] Add arbitrary base log for math/vec3 math nodes --- addons/material_maker/nodes/math.mmg | 4 ++++ addons/material_maker/nodes/math_v3.mmg | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/addons/material_maker/nodes/math.mmg b/addons/material_maker/nodes/math.mmg index 2550080d2..93d116757 100644 --- a/addons/material_maker/nodes/math.mmg +++ b/addons/material_maker/nodes/math.mmg @@ -81,6 +81,10 @@ "name": "log(A)", "value": "log($in1($uv))" }, + { + "name": "log(A, B)", + "value": "log($in1($uv))/log($in2($uv))" + }, { "name": "log2(A)", "value": "log2($in1($uv))" diff --git a/addons/material_maker/nodes/math_v3.mmg b/addons/material_maker/nodes/math_v3.mmg index e775fdeb3..e6cf98e57 100644 --- a/addons/material_maker/nodes/math_v3.mmg +++ b/addons/material_maker/nodes/math_v3.mmg @@ -80,6 +80,10 @@ "name": "log(A)", "value": "log($in1($uv))" }, + { + "name": "log(A, B)", + "value": "log($in1($uv))/log($in2($uv))" + }, { "name": "log2(A)", "value": "log2($in1($uv))"