Sign node

Access: Nodes > Math > Sign

Returns -1, 0, or 1 per channel indicating the sign of the input.

Input (RGB) Output (RGB)
5.2, 0.1, 100.0 1.0, 1.0, 1.0
0.0, 0.0, 0.0 0.0, 0.0, 0.0
-0.01, -20.0, -0.5 -1.0, -1.0, -1.0

Sign node inputs

Input

The input value to evaluate.

Sign node outputs

Output

Returns −1 for negative values, 0 for zero, and +1 for positive values, per