123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeVectorFunc.xml.
- .. _class_VisualShaderNodeVectorFunc:
- VisualShaderNodeVectorFunc
- ==========================
- **Inherits:** :ref:`VisualShaderNodeVectorBase<class_VisualShaderNodeVectorBase>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- A vector function to be used within the visual shader graph.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- A visual shader node able to perform different functions using vectors.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +-----------------------------------------------------------+---------------------------------------------------------------------+-------+
- | :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` | :ref:`function<class_VisualShaderNodeVectorFunc_property_function>` | ``0`` |
- +-----------------------------------------------------------+---------------------------------------------------------------------+-------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_VisualShaderNodeVectorFunc_Function:
- .. rst-class:: classref-enumeration
- enum **Function**: :ref:`🔗<enum_VisualShaderNodeVectorFunc_Function>`
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NORMALIZE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_NORMALIZE** = ``0``
- Normalizes the vector so that it has a length of ``1`` but points in the same direction.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SATURATE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SATURATE** = ``1``
- Clamps the value between ``0.0`` and ``1.0``.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NEGATE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_NEGATE** = ``2``
- Returns the opposite value of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RECIPROCAL:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_RECIPROCAL** = ``3``
- Returns ``1/vector``.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ABS:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ABS** = ``4``
- Returns the absolute value of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOS:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ACOS** = ``5``
- Returns the arc-cosine of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOSH:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ACOSH** = ``6``
- Returns the inverse hyperbolic cosine of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASIN:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ASIN** = ``7``
- Returns the arc-sine of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASINH:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ASINH** = ``8``
- Returns the inverse hyperbolic sine of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATAN:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ATAN** = ``9``
- Returns the arc-tangent of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATANH:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ATANH** = ``10``
- Returns the inverse hyperbolic tangent of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_CEIL:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_CEIL** = ``11``
- Finds the nearest integer that is greater than or equal to the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COS:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_COS** = ``12``
- Returns the cosine of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COSH:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_COSH** = ``13``
- Returns the hyperbolic cosine of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_DEGREES:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_DEGREES** = ``14``
- Converts a quantity in radians to degrees.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_EXP** = ``15``
- Base-e Exponential.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP2:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_EXP2** = ``16``
- Base-2 Exponential.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FLOOR:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_FLOOR** = ``17``
- Finds the nearest integer less than or equal to the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FRACT:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_FRACT** = ``18``
- Computes the fractional part of the argument.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_INVERSE_SQRT:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_INVERSE_SQRT** = ``19``
- Returns the inverse of the square root of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_LOG** = ``20``
- Natural logarithm.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG2:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_LOG2** = ``21``
- Base-2 logarithm.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RADIANS:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_RADIANS** = ``22``
- Converts a quantity in degrees to radians.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUND:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ROUND** = ``23``
- Finds the nearest integer to the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUNDEVEN:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ROUNDEVEN** = ``24``
- Finds the nearest even integer to the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIGN:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **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.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIN:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SIN** = ``26``
- Returns the sine of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SINH:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SINH** = ``27``
- Returns the hyperbolic sine of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SQRT:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_SQRT** = ``28``
- Returns the square root of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TAN:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_TAN** = ``29``
- Returns the tangent of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TANH:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_TANH** = ``30``
- Returns the hyperbolic tangent of the parameter.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TRUNC:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **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.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ONEMINUS:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_ONEMINUS** = ``32``
- Returns ``1.0 - vector``.
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_MAX:
- .. rst-class:: classref-enumeration-constant
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **FUNC_MAX** = ``33``
- Represents the size of the :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` enum.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_VisualShaderNodeVectorFunc_property_function:
- .. rst-class:: classref-property
- :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **function** = ``0`` :ref:`🔗<class_VisualShaderNodeVectorFunc_property_function>`
- .. rst-class:: classref-property-setget
- - |void| **set_function**\ (\ value\: :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>`\ )
- - :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **get_function**\ (\ )
- The function to be performed. See :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` for options.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|