Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Sign Node
Description
Outputs one, zero, or negative one according to the sign of the input scalar value or individual components of input vectors.
- 1 is returned if input is positive
- 0 is returned if input equals to zero
- -1 is returned if input is negative
Usage Examples
Example 1
The Sign node takes Vertex Normal coordinates in World space and provides Emission color values for the Material changing the color from black (0,0,0) to white (1, 1, 1) across the surface, depending on the sign of Vertex Normal components.
Last update:
2023-12-19
Help improve this article
(or select a word/phrase and press Ctrl+Enter)