Outdated documentation
This documentation page refers to Godot
4.3,
and may be outdated or incorrect.
Additionally, this engine version is
no longer supported.
Check this page in the stable branch for the latest additions and corrections.
VisualShaderNodeIf
Inherits: VisualShaderNode < Resource < RefCounted < Object
Outputs a 3D vector based on the result of a floating-point comparison within the visual shader graph.
Description
This visual shader node has six input ports:
Port 1 and 2 provide the two floating-point numbers
aandbthat will be compared.Port 3 is the tolerance, which allows similar floating-point numbers to be considered equal.
Ports 4, 5, and 6 are the possible outputs, returned if
a == b,a > b, ora < brespectively.