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...
VisualShaderNodeFloatFunc
Eredita: VisualShaderNode < Resource < RefCounted < Object
Una funzione scalare in virgola mobile da utilizzare all'interno del grafico di shader visivo.
Descrizione
Accetta uno scalare in virgola mobile (x) sulla porta di ingresso e lo trasforma a seconda della function.
Proprietà
|
Enumerazioni
enum Function: 🔗
Function FUNC_SIN = 0
Restituisce il seno del parametro. Tradotto come sin(x) nel Godot Shader Language.
Function FUNC_COS = 1
Restituisce il coseno del parametro. Tradotto come cos(x) nel Godot Shader Language.
Function FUNC_TAN = 2
Restituisce la tangente del parametro. Tradotto come tan(x) nel Godot Shader Language.
Function FUNC_ASIN = 3
Restituisce l'arcoseno del parametro. Tradotto come asin(x) nel Godot Shader Language.
Function FUNC_ACOS = 4
Restituisce l'arcocoseno del parametro. Tradotto come acos(x) nel Godot Shader Language.
Function FUNC_ATAN = 5
Restituisce l'arcotangente del parametro. Tradotto come atan(x) nel Godot Shader Language.
Function FUNC_SINH = 6
Restituisce il seno iperbolico del parametro. Tradotto come sinh(x) nel Godot Shader Language.
Function FUNC_COSH = 7
Restituisce il coseno iperbolico del parametro. Tradotto come cosh(x) nel Godot Shader Language.
Function FUNC_TANH = 8
Restituisce la tangente iperbolica del parametro. Tradotto come tanh(x) nel Godot Shader Language.
Function FUNC_LOG = 9
Restituisce il logaritmo naturale del parametro. Tradotto come log(x) nel Godot Shader Language.
Function FUNC_EXP = 10
Restituisce l'esponanzione naturale del parametro. Tradotto come exp(x) nel Godot Shader Language.
Function FUNC_SQRT = 11
Restituisce la radice quadrata del parametro. Tradotto come sqrt(x) nel Godot Shader Language.
Function FUNC_ABS = 12
Restituisce il valore assoluto del parametro. Tradotto come abs(x) nel Godot Shader Language.
Function FUNC_SIGN = 13
Restituisce il segno del parametro. Tradotto come sign(x) nel Godot Shader Language.
Function FUNC_FLOOR = 14
Trova il numero intero più vicino che sia minore o uguale al parametro. Tradotto come floor(x) nel Godot Shader Language.
Function FUNC_ROUND = 15
Trova il numero intero più vicino al parametro. Tradotto come round(x) nel Godot Shader Language.
Function FUNC_CEIL = 16
Trova il numero intero più vicino che sia maggiore o uguale al parametro. Tradotto come ceil(x) nel Godot Shader Language.
Function FUNC_FRACT = 17
Calcola la parte frazionaria dell'argomento. Tradotto come fract(x) nel Godot Shader Language.
Function FUNC_SATURATE = 18
Limita il valore tra 0.0 e 1.0 tramite min(max(x, 0.0), 1.0).
Function FUNC_NEGATE = 19
Nega la x usando -(x).
Function FUNC_ACOSH = 20
Restituisce l'arcocoseno iperbolico del parametro. Tradotto come acosh(x) nel Godot Shader Language.
Function FUNC_ASINH = 21
Restituisce l'arcoseno iperbolico del parametro. Tradotto come asinh(x) nel Godot Shader Language.
Function FUNC_ATANH = 22
Restituisce l'arcotangente iperbolico del parametro. Tradotto come atanh(x) nel Godot Shader Language.
Function FUNC_DEGREES = 23
Converte una quantità in radianti a gradi. Tradotto come degrees(x) nel Godot Shader Language.
Function FUNC_EXP2 = 24
Restituisce 2 elevato alla potenza del parametro. Tradotto come exp2(x) nel Godot Shader Language.
Function FUNC_INVERSE_SQRT = 25
Restituisce l'inversa della radice quadrata del parametro. Tradotto come inversesqrt(x) nel Godot Shader Language.
Function FUNC_LOG2 = 26
Restituisce il logaritmo in base 2 del parametro. Tradotto come log2(x) nel Godot Shader Language.
Function FUNC_RADIANS = 27
Converte una quantità in gradi a radianti. Tradotto come radians(x) nel Godot Shader Language.
Function FUNC_RECIPROCAL = 28
Trova il valore reciproco di divisione per 1 da x (cioè 1 / x).
Function FUNC_ROUNDEVEN = 29
Trova l'intero pari più vicino al parametro. Tradotto come roundEven(x) nel Godot Shader Language.
Function FUNC_TRUNC = 30
Restituisce un valore uguale all'intero più vicino a x il cui valore assoluto non è più grande del valore assoluto di x. Tradotto come trunc(x) nel Godot Shader Language.
Function FUNC_ONEMINUS = 31
Sottrae la x scalare da 1 (cioè 1 - x).
Function FUNC_MAX = 32
Rappresenta la dimensione dell'enumerazione Function.
Descrizioni delle proprietà
Una funzione da applicare allo scalare.