Inherits: VisualShaderNode < Resource < RefCounted < Object
A comparison function for common types within the visual shader graph.
Compares a and b of type by function. Returns a boolean scalar. Translates to if instruction in shader code.
| ||
| ||
|
0
A floating-point scalar.
1
An integer scalar.
2
An unsigned integer scalar.
3
A 2D vector type.
4
A 3D vector type.
5
A 4D vector type.
6
A boolean type.
7
A transform (mat4) type.
8
Represents the size of the ComparisonType enum.
0
Comparison for equality (a == b).
1
Comparison for inequality (a != b).
2
Comparison for greater than (a > b). Cannot be used if type set to CTYPE_BOOLEAN or CTYPE_TRANSFORM.
3
Comparison for greater than or equal (a >= b). Cannot be used if type set to CTYPE_BOOLEAN or CTYPE_TRANSFORM.
4
Comparison for less than (a < b). Cannot be used if type set to CTYPE_BOOLEAN or CTYPE_TRANSFORM.
5
Comparison for less than or equal (a <= b). Cannot be used if type set to CTYPE_BOOLEAN or CTYPE_TRANSFORM.
6
Represents the size of the Function enum.
0
The result will be true if all of component in vector satisfy the comparison condition.
1
The result will be true if any of component in vector satisfy the comparison condition.
2
Represents the size of the Condition enum.
0
Extra condition which is applied if type is set to CTYPE_VECTOR_3D.
0
A comparison function. See Function for options.
0
The type to be used in the comparison. See ComparisonType for options.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_visualshadernodecompare.html