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...
VisualShaderNodeVectorFunc¶
Inherits: VisualShaderNodeVectorBase < VisualShaderNode < Resource < RefCounted < Object
在可视化着色器图中使用的向量函数。
Description¶
可视化着色器节点,能够使用向量执行不同的函数。
Properties¶
|
Enumerations¶
enum Function:
Function FUNC_NORMALIZE = 0
将向量归一化,使其长度为1
,但指向相同的方向。
Function FUNC_SATURATE = 1
限制0.0
和1.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 枚举的大小。
Property Descriptions¶
Function function = 0
要执行的函数。参阅 Function 的选项。