VisualShaderNodeCompare
A comparison function for common types within the visual shader graph.
Compares and b
of by function. Returns a boolean scalar. Translates to if
instruction in shader code.
- CTYPE_SCALAR = 0 —- A floating-point scalar.
- CTYPE_BOOLEAN = 2 —- A boolean type.
- CTYPE_TRANSFORM = 3 —- A transform (
mat4
) type.
enum Function:
- FUNC_EQUAL = 0 —- Comparison for equality (
a == b
). - FUNC_NOT_EQUAL = 1 —- Comparison for inequality (
a != b
). - FUNC_GREATER_THAN = 2 —- Comparison for greater than (
a > b
). Cannot be used if set to CTYPE_BOOLEAN or . - FUNC_LESS_THAN = 4 —- Comparison for less than (
a < b
). Cannot be used if type set to or CTYPE_TRANSFORM. - FUNC_LESS_THAN_EQUAL = 5 —- Comparison for less than or equal (
a < b
). Cannot be used if set to CTYPE_BOOLEAN or .
enum Condition:
- COND_ALL = 0 —- The result will be true if all of component in vector satisfy the comparison condition.
- COND_ANY = 1 —- The result will be true if any of component in vector satisfy the comparison condition.
- Condition condition
A comparison function. See for options.
- ComparisonType type
The type to be used in the comparison. See for options.