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.

VisualShaderNodeUIntFunc

繼承: VisualShaderNode < Resource < RefCounted < Object

無符號標量整數函式,在視覺化著色器圖中使用。

說明

接受一個不帶正負號的整數標量(x)到輸入埠,並根據 function 對其進行轉換。

屬性

Function

function

0


列舉

enum Function: 🔗

Function FUNC_NEGATE = 0

使用 -(x),對 x 求反。

Function FUNC_BITWISE_NOT = 1

返回對該整數進行按位元 NOT 運算的結果。在 Godot 著色器語言中會被翻譯為 ~a

Function FUNC_MAX = 2

代表 Function 列舉的大小。


屬性說明

Function function = 0 🔗

A function to be applied to the scalar.