:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/4.3/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/4.3/doc/classes/VisualShaderNodeVectorFunc.xml. .. _class_VisualShaderNodeVectorFunc: VisualShaderNodeVectorFunc ========================== **Inherits:** :ref:`VisualShaderNodeVectorBase` **<** :ref:`VisualShaderNode` **<** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`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` | :ref:`function` | ``0`` | +-----------------------------------------------------------+---------------------------------------------------------------------+-------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_VisualShaderNodeVectorFunc_Function: .. rst-class:: classref-enumeration enum **Function**: :ref:`🔗` .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NORMALIZE: .. rst-class:: classref-enumeration-constant :ref:`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` **FUNC_SATURATE** = ``1`` Clamps the value between ``0.0`` and ``1.0``. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NEGATE: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_NEGATE** = ``2`` Returns the opposite value of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RECIPROCAL: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_RECIPROCAL** = ``3`` Returns ``1/vector``. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ABS: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ABS** = ``4`` Returns the absolute value of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOS: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ACOS** = ``5`` Returns the arc-cosine of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOSH: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ACOSH** = ``6`` Returns the inverse hyperbolic cosine of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASIN: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ASIN** = ``7`` Returns the arc-sine of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASINH: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ASINH** = ``8`` Returns the inverse hyperbolic sine of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATAN: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ATAN** = ``9`` Returns the arc-tangent of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATANH: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ATANH** = ``10`` Returns the inverse hyperbolic tangent of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_CEIL: .. rst-class:: classref-enumeration-constant :ref:`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` **FUNC_COS** = ``12`` Returns the cosine of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COSH: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_COSH** = ``13`` Returns the hyperbolic cosine of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_DEGREES: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_DEGREES** = ``14`` Converts a quantity in radians to degrees. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_EXP** = ``15`` Base-e Exponential. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP2: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_EXP2** = ``16`` Base-2 Exponential. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FLOOR: .. rst-class:: classref-enumeration-constant :ref:`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` **FUNC_FRACT** = ``18`` Computes the fractional part of the argument. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_INVERSE_SQRT: .. rst-class:: classref-enumeration-constant :ref:`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` **FUNC_LOG** = ``20`` Natural logarithm. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG2: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_LOG2** = ``21`` Base-2 logarithm. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RADIANS: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_RADIANS** = ``22`` Converts a quantity in degrees to radians. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUND: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ROUND** = ``23`` Finds the nearest integer to the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUNDEVEN: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_ROUNDEVEN** = ``24`` Finds the nearest even integer to the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIGN: .. rst-class:: classref-enumeration-constant :ref:`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` **FUNC_SIN** = ``26`` Returns the sine of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SINH: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_SINH** = ``27`` Returns the hyperbolic sine of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SQRT: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_SQRT** = ``28`` Returns the square root of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TAN: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_TAN** = ``29`` Returns the tangent of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TANH: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_TANH** = ``30`` Returns the hyperbolic tangent of the parameter. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TRUNC: .. rst-class:: classref-enumeration-constant :ref:`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` **FUNC_ONEMINUS** = ``32`` Returns ``1.0 - vector``. .. _class_VisualShaderNodeVectorFunc_constant_FUNC_MAX: .. rst-class:: classref-enumeration-constant :ref:`Function` **FUNC_MAX** = ``33`` Represents the size of the :ref:`Function` enum. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_VisualShaderNodeVectorFunc_property_function: .. rst-class:: classref-property :ref:`Function` **function** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_function**\ (\ value\: :ref:`Function`\ ) - :ref:`Function` **get_function**\ (\ ) The function to be performed. See :ref:`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.)`