Math nodes

nodes for both simple and complex math for number values and point values.


Add math.add

adds two or more number/point values together.


Divide math.divide

divides a number/point value from another.


Modulo math.modulo

wraps a number/point value between zero and the other value.


Multiply math.multiply

multiplies two or more number/point values together.


Negate math.negate

negates a number/point value (same as zero minus the input).


One Minus math.oneMinus

negates a number/point value and adds one (same as one minus the input).


Remainder math.remainder

divides a number/point value from another and returns the remainder.


Subtract math.subtract

subtracts a number/point value from another.


Exponential math.exp

returns the exponential of a number value, base đť‘’.


Logarithm math.log

returns the logarithm of a number value, base đť‘’.


Square Root math.sqrt

returns the square root of a number value.


Absolute math.abs

ensures a number/point value is always positive, by negating it if necessary.


Average math.average

takes the average number/point value between the inputs and outputs it.


Ceiling math.ceil

rounds a number/point value away from zero.


Clamp math.clamp

limits a number/point value between a minimum and a maximum.


Clamp -1 to 1 math.clamp11

limits a number/point value between -1 and 1.


Clamp 0 to 1 math.clamp01

limits a number/point value between 0 and 1.


Ease math.ease

interpolates a number value between 0 and 1 to apply an easing in and/or out effect.


Floor math.floor

rounds a number/point value toward zero.


Lerp math.lerp

interpolates a given value, where 0 maps to the first input and 1 maps to the second one.


Max math.max

takes the maximum number/point value between the inputs and outputs it.


Min math.min

takes the minimum number/point value between the inputs and outputs it.


Remap math.remap

remaps a value between a range into another.

this node essentially combines Unlerp and Lerp into one.


Round math.round

rounds a number/point value to the nearest integer.


Unlerp math.unlerp

interpolates a given value inversely, where it returns 0 if it’s equal to the first value, and 1 to the second.


Arccosine math.acos

returns the arccosine of a number value, in radians.


Arcsine math.asin

returns the arcsine of a number value, in radians.


Arctangent math.atan

returns the arctangent of a number value, in radians.


Cosine math.cos

returns the cosine of a number value in radians.


Length math.length

takes the geometric length of a number/point value.


Normalize math.normalize

normalizes a point value so that its length is 1.


Sine math.sin

returns the sine of a number value in radians.


Sine & Cosine math.sinCos

returns both sine and cosine of a number value as a point value.


Tangent math.tan

returns the tangent of a number value in radians.


Circle to Square math.circleToSquare

takes a normalized point value and maps it to a square between -1 and 1.


Square to Circle math.squareToCircle

takes a square point value between -1 and 1 and maps it to a normalized point.

most inputs (Cursor, analog sticks from Gamepad, so on) return square points from -1 to 1. this node can help bringing these values to a unit vector.


Expression math.expression

lets the user write their own mathematical expression, which is then parsed using the numerical inputs.

this can help simplify node graphs with lots of math nodes, as long as you’re comfortable writing math by hand.