VisualShaderNodeVectorFunc.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeVectorFunc" inherits="VisualShaderNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. A vector function to be used within the visual shader graph.
  5. </brief_description>
  6. <description>
  7. A visual shader node able to perform different functions using vectors.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="function" type="int" setter="set_function" getter="get_function" enum="VisualShaderNodeVectorFunc.Function" default="0">
  15. The function to be performed. See [enum Function] for options.
  16. </member>
  17. </members>
  18. <constants>
  19. <constant name="FUNC_NORMALIZE" value="0" enum="Function">
  20. Normalizes the vector so that it has a length of [code]1[/code] but points in the same direction.
  21. </constant>
  22. <constant name="FUNC_SATURATE" value="1" enum="Function">
  23. Clamps the value between [code]0.0[/code] and [code]1.0[/code].
  24. </constant>
  25. <constant name="FUNC_NEGATE" value="2" enum="Function">
  26. Returns the opposite value of the parameter.
  27. </constant>
  28. <constant name="FUNC_RECIPROCAL" value="3" enum="Function">
  29. Returns [code]1/vector[/code].
  30. </constant>
  31. <constant name="FUNC_RGB2HSV" value="4" enum="Function">
  32. Converts RGB vector to HSV equivalent.
  33. </constant>
  34. <constant name="FUNC_HSV2RGB" value="5" enum="Function">
  35. Converts HSV vector to RGB equivalent.
  36. </constant>
  37. <constant name="FUNC_ABS" value="6" enum="Function">
  38. Returns the absolute value of the parameter.
  39. </constant>
  40. <constant name="FUNC_ACOS" value="7" enum="Function">
  41. Returns the arc-cosine of the parameter.
  42. </constant>
  43. <constant name="FUNC_ACOSH" value="8" enum="Function">
  44. Returns the inverse hyperbolic cosine of the parameter.
  45. </constant>
  46. <constant name="FUNC_ASIN" value="9" enum="Function">
  47. Returns the arc-sine of the parameter.
  48. </constant>
  49. <constant name="FUNC_ASINH" value="10" enum="Function">
  50. Returns the inverse hyperbolic sine of the parameter.
  51. </constant>
  52. <constant name="FUNC_ATAN" value="11" enum="Function">
  53. Returns the arc-tangent of the parameter.
  54. </constant>
  55. <constant name="FUNC_ATANH" value="12" enum="Function">
  56. Returns the inverse hyperbolic tangent of the parameter.
  57. </constant>
  58. <constant name="FUNC_CEIL" value="13" enum="Function">
  59. Finds the nearest integer that is greater than or equal to the parameter.
  60. </constant>
  61. <constant name="FUNC_COS" value="14" enum="Function">
  62. Returns the cosine of the parameter.
  63. </constant>
  64. <constant name="FUNC_COSH" value="15" enum="Function">
  65. Returns the hyperbolic cosine of the parameter.
  66. </constant>
  67. <constant name="FUNC_DEGREES" value="16" enum="Function">
  68. Converts a quantity in radians to degrees.
  69. </constant>
  70. <constant name="FUNC_EXP" value="17" enum="Function">
  71. Base-e Exponential.
  72. </constant>
  73. <constant name="FUNC_EXP2" value="18" enum="Function">
  74. Base-2 Exponential.
  75. </constant>
  76. <constant name="FUNC_FLOOR" value="19" enum="Function">
  77. Finds the nearest integer less than or equal to the parameter.
  78. </constant>
  79. <constant name="FUNC_FRAC" value="20" enum="Function">
  80. Computes the fractional part of the argument.
  81. </constant>
  82. <constant name="FUNC_INVERSE_SQRT" value="21" enum="Function">
  83. Returns the inverse of the square root of the parameter.
  84. </constant>
  85. <constant name="FUNC_LOG" value="22" enum="Function">
  86. Natural logarithm.
  87. </constant>
  88. <constant name="FUNC_LOG2" value="23" enum="Function">
  89. Base-2 logarithm.
  90. </constant>
  91. <constant name="FUNC_RADIANS" value="24" enum="Function">
  92. Converts a quantity in degrees to radians.
  93. </constant>
  94. <constant name="FUNC_ROUND" value="25" enum="Function">
  95. Finds the nearest integer to the parameter.
  96. </constant>
  97. <constant name="FUNC_ROUNDEVEN" value="26" enum="Function">
  98. Finds the nearest even integer to the parameter.
  99. </constant>
  100. <constant name="FUNC_SIGN" value="27" enum="Function">
  101. Extracts the sign of the parameter, i.e. returns [code]-1[/code] if the parameter is negative, [code]1[/code] if it's positive and [code]0[/code] otherwise.
  102. </constant>
  103. <constant name="FUNC_SIN" value="28" enum="Function">
  104. Returns the sine of the parameter.
  105. </constant>
  106. <constant name="FUNC_SINH" value="29" enum="Function">
  107. Returns the hyperbolic sine of the parameter.
  108. </constant>
  109. <constant name="FUNC_SQRT" value="30" enum="Function">
  110. Returns the square root of the parameter.
  111. </constant>
  112. <constant name="FUNC_TAN" value="31" enum="Function">
  113. Returns the tangent of the parameter.
  114. </constant>
  115. <constant name="FUNC_TANH" value="32" enum="Function">
  116. Returns the hyperbolic tangent of the parameter.
  117. </constant>
  118. <constant name="FUNC_TRUNC" value="33" enum="Function">
  119. Returns a value equal to the nearest integer to the parameter whose absolute value is not larger than the absolute value of the parameter.
  120. </constant>
  121. <constant name="FUNC_ONEMINUS" value="34" enum="Function">
  122. Returns [code]1.0 - vector[/code].
  123. </constant>
  124. </constants>
  125. </class>