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...
VisualShaderNodeSmoothStep
Hereda: VisualShaderNode < Resource < RefCounted < Object
Calcula una función SmoothStep dentro del gráfico de shader visual.
Descripción
Se traduce a smoothstep(edge0, edge1, x) en el lenguaje de shader.
Devuelve 0.0 si x es menor que edge0 y 1.0 si x es mayor que edge1. De lo contrario, el valor de retorno se interpola entre 0.0 y 1.0 usando polinomios de Hermite.
Propiedades
|
Enumeraciones
enum OpType: 🔗
OpType OP_TYPE_SCALAR = 0
Un tipo escalar de punto flotante.
OpType OP_TYPE_VECTOR_2D = 1
Un tipo vector 2D.
OpType OP_TYPE_VECTOR_2D_SCALAR = 2
El puerto x utiliza un tipo de vector 2D. Los dos primeros puertos utilizan un tipo escalar de punto flotante.
OpType OP_TYPE_VECTOR_3D = 3
Un tipo vector 3D.
OpType OP_TYPE_VECTOR_3D_SCALAR = 4
El puerto x utiliza un tipo de vector 3D. Los dos primeros puertos utilizan un tipo escalar de punto flotante.
OpType OP_TYPE_VECTOR_4D = 5
Un tipo vector 4D.
OpType OP_TYPE_VECTOR_4D_SCALAR = 6
Los puertos a y b utilizan un tipo de vector 4D. El puerto weight utiliza un tipo escalar.
OpType OP_TYPE_MAX = 7
Representa el tamaño del enum OpType.
Descripciones de Propiedades
Un tipo de operando y valor de retorno.