2
0

VisualShaderNodeMix.xml 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeMix" inherits="VisualShaderNode" version="4.0">
  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 scalar type.
  19. </constant>
  20. <constant name="OP_TYPE_VECTOR" value="1" enum="OpType">
  21. A vector type.
  22. </constant>
  23. <constant name="OP_TYPE_VECTOR_SCALAR" value="2" enum="OpType">
  24. A vector type. [code]weight[/code] port is using a scalar type.
  25. </constant>
  26. <constant name="OP_TYPE_MAX" value="3" enum="OpType">
  27. Represents the size of the [enum OpType] enum.
  28. </constant>
  29. </constants>
  30. </class>