Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VisualShaderNodeIf

繼承: VisualShaderNode < Resource < RefCounted < Object

根據視覺化著色器圖中浮點比較的結果輸出 3D 向量。

說明

這個視覺化著色器節點有六個輸入連接埠:

  • 連接埠 1 和連接埠 2 提供的是需要比較的兩個浮點數 a 和 b。

  • 連接埠 3 是公差,能夠將相似的浮點數認定為相等。

  • 連接埠 4、5、6 是可能的輸出,分別是 a == b、a > b、a < b 時的回傳值。