Inherits: VisualShaderNode < Resource < Reference < 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.
Condition | condition | 0 |
Function | function | 0 |
ComparisonType | type | 0 |
enum ComparisonType:
mat4
) type.enum Function:
a == b
).a != b
).a > b
). Cannot be used if type set to CTYPE_BOOLEAN or CTYPE_TRANSFORM.a >= b
). Cannot be used if type set to CTYPE_BOOLEAN or CTYPE_TRANSFORM.a < b
). Cannot be used if type set to CTYPE_BOOLEAN or CTYPE_TRANSFORM.a < b
). Cannot be used if type set to CTYPE_BOOLEAN or CTYPE_TRANSFORM.enum Condition:
Default | 0 |
Setter | set_condition(value) |
Getter | get_condition() |
Extra condition which is applied if type is set to CTYPE_VECTOR.
Default | 0 |
Setter | set_function(value) |
Getter | get_function() |
A comparison function. See Function for options.
Default | 0 |
Setter | set_comparison_type(value) |
Getter | get_comparison_type() |
The type to be used in the comparison. See ComparisonType for options.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_visualshadernodecompare.html