Skip to main content

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

PortTypeDescription
A FloatThe primary input value.
B FloatThe secondary input value (optional).
Output FloatThe 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: A raised to the power of B
    • Abs: Absolute value of A
    • Min: The smaller of A and B
    • Max: The larger of A and B
  • 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.0 and connect noise to port A to invert the noise (effectively 1 - 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).