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...
VisualShaderNodeStep
Hereda: VisualShaderNode < Resource < RefCounted < Object
Calcula una función Step dentro del gráfico de shader visual.
Descripción
Se traduce a step(edge, x) en el lenguaje de shaders.
Devuelve 0.0 si x es más pequeño que edge y 1.0 en caso contrario.
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, mientras que el puerto edge utiliza 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, mientras que el puerto edge utiliza 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.