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...
VisualShaderNodeMix
繼承: VisualShaderNode < Resource < RefCounted < Object
在視覺化著色器圖中,在兩個值之間進行線性插值。
說明
翻譯為著色器語言中的 mix(a, b, weight)。
屬性
|
列舉
enum OpType: 🔗
OpType OP_TYPE_SCALAR = 0
浮點標量。
OpType OP_TYPE_VECTOR_2D = 1
2D 向量型別。
OpType OP_TYPE_VECTOR_2D_SCALAR = 2
a 和 b 埠使用 2D 向量型別。weight 端口使用標量型別。
OpType OP_TYPE_VECTOR_3D = 3
3D向量型別。
OpType OP_TYPE_VECTOR_3D_SCALAR = 4
a 和 b 埠使用 3D 向量型別。weight 端口使用標量型別。
OpType OP_TYPE_VECTOR_4D = 5
4D 向量型別。
OpType OP_TYPE_VECTOR_4D_SCALAR = 6
a 和 b 埠使用 4D 向量型別。weight 端口使用標量型別。
OpType OP_TYPE_MAX = 7
代表 OpType 列舉的大小。
屬性說明
運算元和返回值的型別。