0
Under review

Adding a value to multiply and add-nodes.

bjorn 10 years ago updated by Freya Holmér (Developer) 10 years ago 1
I keep finding myself wishing for a default value to the Add and Multiply nodes. In almost every shader I write, at one place or several I just want to add or multiply the result of the blending with a simple float.

Two ways I feel this could be done:, the first seems most simple, the second is more of a stretch - but useful if you want to see the values displayed at the bottom (when working wih vectors for instance)

Image 148

Not super important, but would help making shader trees a bit cleaner.
I did think of having some system like this back in the alpha days, but I never got around to doing it.

Currently, I've split this type of behaviour into separate nodes; Lerp and Lerp (Simple), for instance, are the same, except that the latter doesn't have inputs for it, it has constants.

So, ideally, this shouldn't require a node switch, it would be nice to be able to type constant values directly into the inputs, like your example at the bottom