NumberFlow, float nodes
These nodes provide a collection of floating-point functions. The example images use U as the first
and V as the second input.
Adds two float together.
- Add Add
- Adds three floats together. This is slightly faster and more convenient than using two Add nodes.
Subtracts the second float from the first.
Multiplies two floats together.
Divides the first float by the second. It's typically faster to use multiply instead.
Computes the first float modulo the second.
Takes the absolute value of a float. The example image shows the absolute of (U - V).
Squares a float.
Cubes a float.
- Square Root
Computes the square root of a float.
- From Int
- Converts an int to a float.
- Evaluates a point on a curve.
Linearly interpolates between two floats based on a third. The example image interpolates
between U and V based on (UV center distance × 2).
These are convenient nodes for addition, subtraction, and division with the number one.
- + 1
Adds one to a float.
- - 1
Subtracts one to a float.
- 1 -
Subtracts a float from one.
- 1 %
Divides one by a float.
Takes the highest of two floats.
Takes the lowest of two floats.
Takes the average of two floats.
The example images use (U × 3 - 1) as input.
- Clamp 01
Clamps a float to the 0–1 range. Clamping has no effect for the example image,
as values outside of the color range are clamped already.
- Loop 01
Loops a float over the 0–1 range.
- PingPong 01
Ping-pongs a float over the 0–1 range.
The example images use (U × 10) as input and are transformed from the -1–1 range to the
Computes the cosine of a float.
Computes the sine of a float.
Converts a float to a sine wave with a configurable frequency and offset. This is
often more convenient that using sine or cosine directly.
The example image uses V as the frequency and an offset of 0.