Expression Node
Description
This node is used to write simple arithmetic operations as well as to change the number of data components, or as a swizzle. The contents to be put to each channel are separated with a comma.
Usage Examples
Example 1
- You can easily take only the Y channel from a Float4 by simply writing "Y". Thus, you'll have a Float4 -> Float conversion.
- You can swap channels of a Float4 value by writing "Z,W,Y,X".
- You can write simple arithmetic opreations like "1-X" or "X*2".
- The following expression will work as well: "pow(X,Y)+2, lerp(X,Y,Z)".
Last update:
2021-12-13
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)