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.

VisualShaderNodeVectorFunc

繼承: VisualShaderNodeVectorBase < VisualShaderNode < Resource < RefCounted < Object

在視覺化著色器圖中使用的向量函式。

說明

視覺化著色器節點,能夠使用向量執行不同的函式。

屬性

Function

function

0


列舉

enum Function: 🔗

Function FUNC_NORMALIZE = 0

將向量正規化,使其長度為1,但指向相同的方向。

Function FUNC_SATURATE = 1

限制0.01.0之間的值。

Function FUNC_NEGATE = 2

返回參數的相反值。

Function FUNC_RECIPROCAL = 3

返回 1/vector

Function FUNC_ABS = 4

返回參數的絕對值。

Function FUNC_ACOS = 5

返回參數的反餘弦值。

Function FUNC_ACOSH = 6

返回參數的反雙曲餘弦值。

Function FUNC_ASIN = 7

返回參數的反正弦值。

Function FUNC_ASINH = 8

返回參數的反雙曲正弦值。

Function FUNC_ATAN = 9

返回參數的反正切值。

Function FUNC_ATANH = 10

返回參數的反雙曲正切值。

Function FUNC_CEIL = 11

搜尋最接近的大於或等於參數的整數。

Function FUNC_COS = 12

返回參數的餘弦值。

Function FUNC_COSH = 13

返回參數的雙曲餘弦值。

Function FUNC_DEGREES = 14

將以弧度為單位的量轉換為度。

Function FUNC_EXP = 15

以 e 為底的指數。

Function FUNC_EXP2 = 16

以 2 為底的指數。

Function FUNC_FLOOR = 17

搜尋小於或等於參數的最近整數。

Function FUNC_FRACT = 18

計算參數的小數部分。

Function FUNC_INVERSE_SQRT = 19

返回參數的平方根的倒數。

Function FUNC_LOG = 20

自然對數。

Function FUNC_LOG2 = 21

以 2 為底的對數。

Function FUNC_RADIANS = 22

將度數轉換為弧度。

Function FUNC_ROUND = 23

搜尋參數最近的整數。

Function FUNC_ROUNDEVEN = 24

搜尋參數最近的偶數。

Function FUNC_SIGN = 25

提取參數的符號,即如果參數是負的,返回 -1,如果是正的,返回 1,否則返回 0

Function FUNC_SIN = 26

返回參數的正弦值。

Function FUNC_SINH = 27

返回參數的雙曲正弦值。

Function FUNC_SQRT = 28

返回參數的平方根。

Function FUNC_TAN = 29

返回參數的正切值。

Function FUNC_TANH = 30

返回參數的雙曲正切值。

Function FUNC_TRUNC = 31

返回一個等於與參數最接近的整數的值,該值的絕對值不大於參數的絕對值。

Function FUNC_ONEMINUS = 32

返回 1.0 - vector

Function FUNC_MAX = 33

代表 Function 列舉的大小。


屬性說明

Function function = 0 🔗

The function to be performed.