VisualShaderNodeMix

Inherits: VisualShaderNode < Resource < RefCounted < Object

Linearly interpolates between two values within the visual shader graph.

Description

Translates to mix(a, b, weight) in the shader language.

Properties

OpType

op_type

0

Enumerations

enum OpType:

  • OP_TYPE_SCALAR = 0 --- A scalar type.

  • OP_TYPE_VECTOR = 1 --- A vector type.

  • OP_TYPE_VECTOR_SCALAR = 2 --- A vector type. weight port is using a scalar type.

  • OP_TYPE_MAX = 3 --- Represents the size of the OpType enum.

Property Descriptions

Default

0

Setter

set_op_type(value)

Getter

get_op_type()

A type of operands and returned value.