12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- :github_url: hide
- .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the VisualShaderNodeVectorDerivativeFunc.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_VisualShaderNodeVectorDerivativeFunc:
- VisualShaderNodeVectorDerivativeFunc
- ====================================
- **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
- Calculates a vector derivative within the visual shader graph.
- Description
- -----------
- This node is only available in ``Fragment`` and ``Light`` visual shaders.
- Properties
- ----------
- +---------------------------------------------------------------------+-------------------------------------------------------------------------------+-------+
- | :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_Function>` | :ref:`function<class_VisualShaderNodeVectorDerivativeFunc_property_function>` | ``0`` |
- +---------------------------------------------------------------------+-------------------------------------------------------------------------------+-------+
- Enumerations
- ------------
- .. _enum_VisualShaderNodeVectorDerivativeFunc_Function:
- .. _class_VisualShaderNodeVectorDerivativeFunc_constant_FUNC_SUM:
- .. _class_VisualShaderNodeVectorDerivativeFunc_constant_FUNC_X:
- .. _class_VisualShaderNodeVectorDerivativeFunc_constant_FUNC_Y:
- enum **Function**:
- - **FUNC_SUM** = **0** --- Sum of absolute derivative in ``x`` and ``y``.
- - **FUNC_X** = **1** --- Derivative in ``x`` using local differencing.
- - **FUNC_Y** = **2** --- Derivative in ``y`` using local differencing.
- Property Descriptions
- ---------------------
- .. _class_VisualShaderNodeVectorDerivativeFunc_property_function:
- - :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_Function>` **function**
- +-----------+---------------------+
- | *Default* | ``0`` |
- +-----------+---------------------+
- | *Setter* | set_function(value) |
- +-----------+---------------------+
- | *Getter* | get_function() |
- +-----------+---------------------+
- A derivative type. See :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_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.)`
|