class_visualshadernodevectorfunc.rst 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeVectorFunc.xml.
  6. .. _class_VisualShaderNodeVectorFunc:
  7. VisualShaderNodeVectorFunc
  8. ==========================
  9. **Inherits:** :ref:`VisualShaderNodeVectorBase<class_VisualShaderNodeVectorBase>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A vector function to be used within the visual shader graph.
  11. Description
  12. -----------
  13. A visual shader node able to perform different functions using vectors.
  14. Properties
  15. ----------
  16. +-----------------------------------------------------------+---------------------------------------------------------------------+-------+
  17. | :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` | :ref:`function<class_VisualShaderNodeVectorFunc_property_function>` | ``0`` |
  18. +-----------------------------------------------------------+---------------------------------------------------------------------+-------+
  19. Enumerations
  20. ------------
  21. .. _enum_VisualShaderNodeVectorFunc_Function:
  22. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NORMALIZE:
  23. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SATURATE:
  24. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NEGATE:
  25. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RECIPROCAL:
  26. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ABS:
  27. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOS:
  28. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOSH:
  29. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASIN:
  30. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASINH:
  31. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATAN:
  32. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATANH:
  33. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_CEIL:
  34. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COS:
  35. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COSH:
  36. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_DEGREES:
  37. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP:
  38. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP2:
  39. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FLOOR:
  40. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FRACT:
  41. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_INVERSE_SQRT:
  42. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG:
  43. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG2:
  44. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RADIANS:
  45. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUND:
  46. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUNDEVEN:
  47. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIGN:
  48. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIN:
  49. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SINH:
  50. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SQRT:
  51. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TAN:
  52. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TANH:
  53. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TRUNC:
  54. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ONEMINUS:
  55. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_MAX:
  56. enum **Function**:
  57. - **FUNC_NORMALIZE** = **0** --- Normalizes the vector so that it has a length of ``1`` but points in the same direction.
  58. - **FUNC_SATURATE** = **1** --- Clamps the value between ``0.0`` and ``1.0``.
  59. - **FUNC_NEGATE** = **2** --- Returns the opposite value of the parameter.
  60. - **FUNC_RECIPROCAL** = **3** --- Returns ``1/vector``.
  61. - **FUNC_ABS** = **4** --- Returns the absolute value of the parameter.
  62. - **FUNC_ACOS** = **5** --- Returns the arc-cosine of the parameter.
  63. - **FUNC_ACOSH** = **6** --- Returns the inverse hyperbolic cosine of the parameter.
  64. - **FUNC_ASIN** = **7** --- Returns the arc-sine of the parameter.
  65. - **FUNC_ASINH** = **8** --- Returns the inverse hyperbolic sine of the parameter.
  66. - **FUNC_ATAN** = **9** --- Returns the arc-tangent of the parameter.
  67. - **FUNC_ATANH** = **10** --- Returns the inverse hyperbolic tangent of the parameter.
  68. - **FUNC_CEIL** = **11** --- Finds the nearest integer that is greater than or equal to the parameter.
  69. - **FUNC_COS** = **12** --- Returns the cosine of the parameter.
  70. - **FUNC_COSH** = **13** --- Returns the hyperbolic cosine of the parameter.
  71. - **FUNC_DEGREES** = **14** --- Converts a quantity in radians to degrees.
  72. - **FUNC_EXP** = **15** --- Base-e Exponential.
  73. - **FUNC_EXP2** = **16** --- Base-2 Exponential.
  74. - **FUNC_FLOOR** = **17** --- Finds the nearest integer less than or equal to the parameter.
  75. - **FUNC_FRACT** = **18** --- Computes the fractional part of the argument.
  76. - **FUNC_INVERSE_SQRT** = **19** --- Returns the inverse of the square root of the parameter.
  77. - **FUNC_LOG** = **20** --- Natural logarithm.
  78. - **FUNC_LOG2** = **21** --- Base-2 logarithm.
  79. - **FUNC_RADIANS** = **22** --- Converts a quantity in degrees to radians.
  80. - **FUNC_ROUND** = **23** --- Finds the nearest integer to the parameter.
  81. - **FUNC_ROUNDEVEN** = **24** --- Finds the nearest even integer to the parameter.
  82. - **FUNC_SIGN** = **25** --- Extracts the sign of the parameter, i.e. returns ``-1`` if the parameter is negative, ``1`` if it's positive and ``0`` otherwise.
  83. - **FUNC_SIN** = **26** --- Returns the sine of the parameter.
  84. - **FUNC_SINH** = **27** --- Returns the hyperbolic sine of the parameter.
  85. - **FUNC_SQRT** = **28** --- Returns the square root of the parameter.
  86. - **FUNC_TAN** = **29** --- Returns the tangent of the parameter.
  87. - **FUNC_TANH** = **30** --- Returns the hyperbolic tangent of the parameter.
  88. - **FUNC_TRUNC** = **31** --- Returns a value equal to the nearest integer to the parameter whose absolute value is not larger than the absolute value of the parameter.
  89. - **FUNC_ONEMINUS** = **32** --- Returns ``1.0 - vector``.
  90. - **FUNC_MAX** = **33** --- Represents the size of the :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` enum.
  91. Property Descriptions
  92. ---------------------
  93. .. _class_VisualShaderNodeVectorFunc_property_function:
  94. - :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **function**
  95. +-----------+---------------------+
  96. | *Default* | ``0`` |
  97. +-----------+---------------------+
  98. | *Setter* | set_function(value) |
  99. +-----------+---------------------+
  100. | *Getter* | get_function() |
  101. +-----------+---------------------+
  102. The function to be performed. See :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` for options.
  103. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  104. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  105. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  106. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  107. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  108. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`