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.
Checking the stable version of the documentation...
VisualShaderNodeIntFunc
繼承: VisualShaderNode < Resource < RefCounted < Object
標量整數函式,在視覺化著色器圖中使用。
說明
在輸入埠接受一個整數標量(x)並根據 function 對其進行變換。
屬性
|
列舉
enum Function: 🔗
Function FUNC_ABS = 0
返回參數的絕對值。在 Godot 著色器語言中,會被翻譯為 abs(x)。
Function FUNC_NEGATE = 1
使用 -(x),對 x 求反。
Function FUNC_SIGN = 2
提取參數的符號。在 Godot 著色器語言中,會被翻譯為 sign(x)。
Function FUNC_BITWISE_NOT = 3
返回對該整數進行按位元 NOT 運算的結果。在 Godot 著色器語言中會被翻譯為 ~a。
Function FUNC_MAX = 4
代表 Function 列舉的大小。
屬性說明
A function to be applied to the scalar.