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 枚举的大小。
属性说明¶
Function function = 2
要应用于该标量的函数。可选项见 Function。