Math
The Calculator. Applies basic mathematical operations to two float inputs (A and B). If input B is not connected, a fallback scalar value is used instead.
Ports
| Port | Type | Description |
|---|---|---|
| A | Float | The primary input value. |
| B | Float | The secondary input value (optional). |
| Output | Float | The result of the operation. |
Details
Parameters
- Operation:
- Add:
A + B - Subtract:
A - B - Multiply:
A * B - Divide:
A / B(Result is 0 if B is 0) - Power:
Araised to the power ofB - Abs: Absolute value of
A - Min: The smaller of
AandB - Max: The larger of
AandB
- Add:
- Scalar B: The fallback value used if the B port is disconnected.
Potential Use Cases
- Layer Combining: Add two different noise fields together to create a more complex terrain pattern.
- Inversion: Use Subtract with
Scalar B: 1.0and connect noise to port A to invert the noise (effectively1 - Noise). - Contrast Control: Use Power with a scalar
B(e.g., 2.0 or 0.5) to sharpen or soften the transitions in a noise field. - Distance Shaping: Use Abs on a coordinate field to create symmetrical patterns (like mirroring terrain across an axis).
Float