I would like to do a little research, and I would like to simulate a MixRgb type node with a mathematical node, to mix BW type maps, since the MixRGB mixes 3 channels, it would be enough for me to mix only one (0-1 Bw), but I'm not sure how to test this with math, I tried the Math node "Multiply Add" I was curious to compare the performance between the RGB type and a node built with single value math, I did not find much about it by looking on the internet Example: (I would like to try to emulate, to compare the performances)
This 'Mix Value' node group will emulate the simple Mix of two values:
- The inputs are all clamped 0-1
- The result is
[(1-Fac) * Value 1] + [Fac * Value 2]
You can use this framework to test it:
The outputs of the Mix RGB node and of the combined lower branches, mixing the channels independently, are indistinguishable.
If you want to test the other mix modes, this reference could be handy.You would replace the 'Add' in the node group with the functions described. here's a link to the Blender code, thanks to this answer by @Meng Hui Tan.