VisualShaderNodeVectorOp.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeVectorOp" inherits="VisualShaderNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. A vector operator to be used within the visual shader graph.
  5. </brief_description>
  6. <description>
  7. A visual shader node for use of vector operators. Operates on vector [code]a[/code] and vector [code]b[/code].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="operator" type="int" setter="set_operator" getter="get_operator" enum="VisualShaderNodeVectorOp.Operator" default="0">
  15. The operator to be used. See [enum Operator] for options.
  16. </member>
  17. </members>
  18. <constants>
  19. <constant name="OP_ADD" value="0" enum="Operator">
  20. Adds two vectors.
  21. </constant>
  22. <constant name="OP_SUB" value="1" enum="Operator">
  23. Subtracts a vector from a vector.
  24. </constant>
  25. <constant name="OP_MUL" value="2" enum="Operator">
  26. Multiplies two vectors.
  27. </constant>
  28. <constant name="OP_DIV" value="3" enum="Operator">
  29. Divides vector by vector.
  30. </constant>
  31. <constant name="OP_MOD" value="4" enum="Operator">
  32. Returns the remainder of the two vectors.
  33. </constant>
  34. <constant name="OP_POW" value="5" enum="Operator">
  35. Returns the value of the first parameter raised to the power of the second, for each component of the vectors.
  36. </constant>
  37. <constant name="OP_MAX" value="6" enum="Operator">
  38. Returns the greater of two values, for each component of the vectors.
  39. </constant>
  40. <constant name="OP_MIN" value="7" enum="Operator">
  41. Returns the lesser of two values, for each component of the vectors.
  42. </constant>
  43. <constant name="OP_CROSS" value="8" enum="Operator">
  44. Calculates the cross product of two vectors.
  45. </constant>
  46. <constant name="OP_ATAN2" value="9" enum="Operator">
  47. Returns the arc-tangent of the parameters.
  48. </constant>
  49. <constant name="OP_REFLECT" value="10" enum="Operator">
  50. Returns the vector that points in the direction of reflection. [code]a[/code] is incident vector and [code]b[/code] is the normal vector.
  51. </constant>
  52. <constant name="OP_STEP" value="11" enum="Operator">
  53. Vector step operator. Returns [code]0.0[/code] if [code]a[/code] is smaller than [code]b[/code] and [code]1.0[/code] otherwise.
  54. </constant>
  55. </constants>
  56. </class>