0.2.0-dev Download ZIP
42 lines ·1.8 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="VisualShaderNodeMix" inherits="VisualShaderNode" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> |
| 3 | <brief_description> |
| 4 | Linearly interpolates between two values within the visual shader graph. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Translates to [code]mix(a, b, weight)[/code] in the shader language. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <members> |
| 12 | <member name="op_type" type="int" setter="set_op_type" getter="get_op_type" enum="VisualShaderNodeMix.OpType" default="0"> |
| 13 | A type of operands and returned value. |
| 14 | </member> |
| 15 | </members> |
| 16 | <constants> |
| 17 | <constant name="OP_TYPE_SCALAR" value="0" enum="OpType"> |
| 18 | A floating-point scalar. |
| 19 | </constant> |
| 20 | <constant name="OP_TYPE_VECTOR_2D" value="1" enum="OpType"> |
| 21 | A 2D vector type. |
| 22 | </constant> |
| 23 | <constant name="OP_TYPE_VECTOR_2D_SCALAR" value="2" enum="OpType"> |
| 24 | The [code]a[/code] and [code]b[/code] ports use a 2D vector type. The [code]weight[/code] port uses a scalar type. |
| 25 | </constant> |
| 26 | <constant name="OP_TYPE_VECTOR_3D" value="3" enum="OpType"> |
| 27 | A 3D vector type. |
| 28 | </constant> |
| 29 | <constant name="OP_TYPE_VECTOR_3D_SCALAR" value="4" enum="OpType"> |
| 30 | The [code]a[/code] and [code]b[/code] ports use a 3D vector type. The [code]weight[/code] port uses a scalar type. |
| 31 | </constant> |
| 32 | <constant name="OP_TYPE_VECTOR_4D" value="5" enum="OpType"> |
| 33 | A 4D vector type. |
| 34 | </constant> |
| 35 | <constant name="OP_TYPE_VECTOR_4D_SCALAR" value="6" enum="OpType"> |
| 36 | The [code]a[/code] and [code]b[/code] ports use a 4D vector type. The [code]weight[/code] port uses a scalar type. |
| 37 | </constant> |
| 38 | <constant name="OP_TYPE_MAX" value="7" enum="OpType"> |
| 39 | Represents the size of the [enum OpType] enum. |
| 40 | </constant> |
| 41 | </constants> |
| 42 | </class> |