Skip to main content

Math

The Arithmetic Unit. Performs basic mathematical operations between two float maps or a float map and a scalar.

Ports

PortTypeDirectionDescription
A FloatInputFirst operand.
B FloatInput(Optional) Second operand. If not connected, Scalar B is used.
Output FloatOutputThe result of the operation.

Operations

OperationLogicDescription
AddA + BSums the two inputs. Useful for combining offsets.
SubtractA - BSubtracts B from A.
MultiplyA * BMultiplies A by B. Primary way to scale intensities.
DivideA / BDivides A by B. Prevents division by zero (returns 0.0).
PowerA ^ BRaises A to the power of B. Great for sharpening noise falloffs.
Abs|A|Returns the absolute (positive) value of A.
Minmin(A, B)Returns the lower of the two values. Similar to a "Darken" blend.
Maxmax(A, B)Returns the higher of the two values. Similar to a "Lighten" blend.

Parameters

  • Operation: The mathematical function to apply.
  • Scalar B: The value to use for operand B if the B input port is disconnected.