Attention

You are reading the latest (unstable) version of this documentation, which may document features not available or compatible with Godot 3.x.

Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.

VisualShaderNodeIf

Inherits: VisualShaderNode < Resource < RefCounted < Object

Compares two floating-point numbers in order to return a required vector within the visual shader graph.

Description

First two ports are scalar floating-point numbers to compare, third is tolerance comparison amount and last three ports represents a vectors returned if a == b, a > b and a < b respectively.