Download

[Request] MAD node in materials

Hi,

I’ll be short: can we have multiply-add node in the materials? It’s handy sometimes and has corresponding hardware implementation.

There is already a node called MultiplyAdd under the category Utility, its just a wrapper around Multiply and Add nodes, but I suspect that the HLSL compiler will compile that down to a MAD

Oops, found after the posting :rolleyes: “problem” solved!

Edit:

Alright, turned out current MAD node multiplies 1st input by 2nd input and adds 2nd input again - not really what I wanted. What I really wanted is something like ConstantBiasScale, but scaling first then biasing.