ShaderMaker

 

 

Math Function
A utility node. Can be used to mathematically merge values, nodes and other parameters.

Function
Pop up menu listing available math functions. The available functions are:

Add - returns Value 1 plusValue 2.
Subtract - returns Value 1 minusValue 2.
Multiply - returns Value 1 times Value 2.
Divide - returns Value 1 divided by Value 2.
Sin - returns the sin of Value 1. Value 2 is ignored.
Cos - returns the cosin of Value 1. Value 2 is ignored.
Tan - returns the tangent of Value 1. Value 2 is ignored.
Sqrt - returns the square root of Value 1. Value 2 is ignored.
Pow - returns Value 1 to the Value 2 power.
Log - returns Value 1 log Value 2.
Mod - returns the modulus (remainder) of Value 1 divided by Value 2.
Abs - returns the absolute value of Value 1. Value 2 is ignored.
Sign - returns -1 if Value 1 is less than 0, returns 1 if Value 1 is greater than 0 and returns 0 if Value 1 is equal to 0. Value 2 is ignored.
Min - returns Value 1 if Value 1 is less than Value 2, otherwise Value 2 is returned.
Max - returns Value 1 if Value 1 is greater than Value 2, otherwise Value 2 is returned.
Clamp - returns Value 1 unless Value 1 is less than 0 or greater than 1. If Value 1 is less than 0, 0 is returned. If Value 1 is greater than 1, 1 is returned. Value 2 is ignored.
Ceil - returns Value 1 rounded up to the next whole number. Value 2 is ignored.
Floor - returns Value 1 rounded down to the last whole number. Value 2 is ignored.
Round - returns Value 1 rounded to the closest whole number. Value 2 is ignored.
Step - returns 0 if Value 1 is less than Value 2 . Returns 1 If Value 1 is greater or equal toValue 2.
Smoothstep - returns Value 1 bicubically smoothed. Value 2 is ignored.

Value 1
Slider/value node defining the first value in the math equation.

Value 2
Slider/value node defining the second value in the math equation.