Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
VisualShaderNodeUIntFunc¶
继承: VisualShaderNode < Resource < RefCounted < Object
无符号标量整数函数,在可视化着色器图中使用。
描述¶
接受一个无符号整数标量(x
)到输入端口,并根据 function 对其进行转换。
属性¶
|
枚举¶
enum Function:
Function FUNC_NEGATE = 0
使用 -(x)
,对 x
求反。
Function FUNC_BITWISE_NOT = 1
返回对该整数进行按位 NOT
运算的结果。在 Godot 着色器语言中会被翻译为 ~a
。
Function FUNC_MAX = 2
代表 Function 枚举的大小。
属性说明¶
Function function = 0
要应用于该标量的函数。可选项见 Function。