123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- :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.
- Description
- -----------
- A visual shader node able to perform different functions using vectors.
- Properties
- ----------
- +-----------------------------------------------------------+---------------------------------------------------------------------+-------+
- | :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` | :ref:`function<class_VisualShaderNodeVectorFunc_property_function>` | ``0`` |
- +-----------------------------------------------------------+---------------------------------------------------------------------+-------+
- Enumerations
- ------------
- .. _enum_VisualShaderNodeVectorFunc_Function:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NORMALIZE:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SATURATE:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_NEGATE:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RECIPROCAL:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ABS:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOS:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ACOSH:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASIN:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ASINH:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATAN:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ATANH:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_CEIL:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COS:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_COSH:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_DEGREES:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_EXP2:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FLOOR:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_FRACT:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_INVERSE_SQRT:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_LOG2:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_RADIANS:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUND:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ROUNDEVEN:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIGN:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SIN:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SINH:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_SQRT:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TAN:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TANH:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_TRUNC:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_ONEMINUS:
- .. _class_VisualShaderNodeVectorFunc_constant_FUNC_MAX:
- enum **Function**:
- - **FUNC_NORMALIZE** = **0** --- Normalizes the vector so that it has a length of ``1`` but points in the same direction.
- - **FUNC_SATURATE** = **1** --- Clamps the value between ``0.0`` and ``1.0``.
- - **FUNC_NEGATE** = **2** --- Returns the opposite value of the parameter.
- - **FUNC_RECIPROCAL** = **3** --- Returns ``1/vector``.
- - **FUNC_ABS** = **4** --- Returns the absolute value of the parameter.
- - **FUNC_ACOS** = **5** --- Returns the arc-cosine of the parameter.
- - **FUNC_ACOSH** = **6** --- Returns the inverse hyperbolic cosine of the parameter.
- - **FUNC_ASIN** = **7** --- Returns the arc-sine of the parameter.
- - **FUNC_ASINH** = **8** --- Returns the inverse hyperbolic sine of the parameter.
- - **FUNC_ATAN** = **9** --- Returns the arc-tangent of the parameter.
- - **FUNC_ATANH** = **10** --- Returns the inverse hyperbolic tangent of the parameter.
- - **FUNC_CEIL** = **11** --- Finds the nearest integer that is greater than or equal to the parameter.
- - **FUNC_COS** = **12** --- Returns the cosine of the parameter.
- - **FUNC_COSH** = **13** --- Returns the hyperbolic cosine of the parameter.
- - **FUNC_DEGREES** = **14** --- Converts a quantity in radians to degrees.
- - **FUNC_EXP** = **15** --- Base-e Exponential.
- - **FUNC_EXP2** = **16** --- Base-2 Exponential.
- - **FUNC_FLOOR** = **17** --- Finds the nearest integer less than or equal to the parameter.
- - **FUNC_FRACT** = **18** --- Computes the fractional part of the argument.
- - **FUNC_INVERSE_SQRT** = **19** --- Returns the inverse of the square root of the parameter.
- - **FUNC_LOG** = **20** --- Natural logarithm.
- - **FUNC_LOG2** = **21** --- Base-2 logarithm.
- - **FUNC_RADIANS** = **22** --- Converts a quantity in degrees to radians.
- - **FUNC_ROUND** = **23** --- Finds the nearest integer to the parameter.
- - **FUNC_ROUNDEVEN** = **24** --- Finds the nearest even integer to the parameter.
- - **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.
- - **FUNC_SIN** = **26** --- Returns the sine of the parameter.
- - **FUNC_SINH** = **27** --- Returns the hyperbolic sine of the parameter.
- - **FUNC_SQRT** = **28** --- Returns the square root of the parameter.
- - **FUNC_TAN** = **29** --- Returns the tangent of the parameter.
- - **FUNC_TANH** = **30** --- Returns the hyperbolic tangent of the parameter.
- - **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.
- - **FUNC_ONEMINUS** = **32** --- Returns ``1.0 - vector``.
- - **FUNC_MAX** = **33** --- Represents the size of the :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` enum.
- Property Descriptions
- ---------------------
- .. _class_VisualShaderNodeVectorFunc_property_function:
- - :ref:`Function<enum_VisualShaderNodeVectorFunc_Function>` **function**
- +-----------+---------------------+
- | *Default* | ``0`` |
- +-----------+---------------------+
- | *Setter* | set_function(value) |
- +-----------+---------------------+
- | *Getter* | 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.)`
|