Ping Pong Node

Access: Nodes > Math > Ping Pong

Produces a triangle wave. As the input increases from 0, the output rises from 0 to 1, then falls back to 0, then rises again, repeating endlessly. Pair it with a UV node to create mirrored, alternating tile patterns without needing a noise generator.

Input (RGB) Output (RGB
0.5, 0.5, 0.5 0.5, 0.5, 0.5
1.0, 1.0, 1.0 1.0, 1.0, 1.0
1.5, 1.5, 1.5 0.5, 0.5, 0.5 (bounces back towards 0)

Ping Pong node inputs

Input

Any value (default is 1, 1, 1, 1) to be folded into a continuous triangle wave.

Ping Pong node outputs

Output

The value after oscillating back and forth between 0 and 1, with a period of 2.