Math
The Arithmetic Unit. Performs basic mathematical operations between two float maps or a float map and a scalar.
Ports
| Port | Type | Direction | Description |
|---|---|---|---|
| A | Float | Input | First operand. |
| B | Float | Input | (Optional) Second operand. If not connected, Scalar B is used. |
| Output | Float | Output | The result of the operation. |
Operations
| Operation | Logic | Description |
|---|---|---|
| Add | A + B | Sums the two inputs. Useful for combining offsets. |
| Subtract | A - B | Subtracts B from A. |
| Multiply | A * B | Multiplies A by B. Primary way to scale intensities. |
| Divide | A / B | Divides A by B. Prevents division by zero (returns 0.0). |
| Power | A ^ B | Raises A to the power of B. Great for sharpening noise falloffs. |
| Abs | |A| | Returns the absolute (positive) value of A. |
| Min | min(A, B) | Returns the lower of the two values. Similar to a "Darken" blend. |
| Max | max(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.
Float