Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

VisualShaderNodeMix

继承: VisualShaderNode < Resource < RefCounted < Object

在可视化着色器图中,在两个值之间进行线性插值。

描述

翻译为着色器语言中的 mix(a, b, weight)

属性

OpType

op_type

0


枚举

enum OpType:

OpType OP_TYPE_SCALAR = 0

浮点标量。

OpType OP_TYPE_VECTOR_2D = 1

2D 向量类型。

OpType OP_TYPE_VECTOR_2D_SCALAR = 2

ab 端口使用 2D 向量类型。weight 端口使用标量类型。

OpType OP_TYPE_VECTOR_3D = 3

3D向量类型。

OpType OP_TYPE_VECTOR_3D_SCALAR = 4

ab 端口使用 3D 向量类型。weight 端口使用标量类型。

OpType OP_TYPE_VECTOR_4D = 5

4D 向量类型。

OpType OP_TYPE_VECTOR_4D_SCALAR = 6

ab 端口使用 4D 向量类型。weight 端口使用标量类型。

OpType OP_TYPE_MAX = 7

代表 OpType 枚举的大小。


属性说明

OpType op_type = 0

操作数和返回值的类型。