class_visualshadernodevectorderivativefunc.rst 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualShaderNodeVectorDerivativeFunc.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualShaderNodeVectorDerivativeFunc:
  6. VisualShaderNodeVectorDerivativeFunc
  7. ====================================
  8. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Calculates a vector derivative within the visual shader graph.
  10. Description
  11. -----------
  12. This node is only available in ``Fragment`` and ``Light`` visual shaders.
  13. Properties
  14. ----------
  15. +---------------------------------------------------------------------+-------------------------------------------------------------------------------+-------+
  16. | :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_Function>` | :ref:`function<class_VisualShaderNodeVectorDerivativeFunc_property_function>` | ``0`` |
  17. +---------------------------------------------------------------------+-------------------------------------------------------------------------------+-------+
  18. Enumerations
  19. ------------
  20. .. _enum_VisualShaderNodeVectorDerivativeFunc_Function:
  21. .. _class_VisualShaderNodeVectorDerivativeFunc_constant_FUNC_SUM:
  22. .. _class_VisualShaderNodeVectorDerivativeFunc_constant_FUNC_X:
  23. .. _class_VisualShaderNodeVectorDerivativeFunc_constant_FUNC_Y:
  24. .. _class_VisualShaderNodeVectorDerivativeFunc_constant_FUNC_MAX:
  25. enum **Function**:
  26. - **FUNC_SUM** = **0** --- Sum of absolute derivative in ``x`` and ``y``.
  27. - **FUNC_X** = **1** --- Derivative in ``x`` using local differencing.
  28. - **FUNC_Y** = **2** --- Derivative in ``y`` using local differencing.
  29. - **FUNC_MAX** = **3** --- Represents the size of the :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_Function>` enum.
  30. Property Descriptions
  31. ---------------------
  32. .. _class_VisualShaderNodeVectorDerivativeFunc_property_function:
  33. - :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_Function>` **function**
  34. +-----------+---------------------+
  35. | *Default* | ``0`` |
  36. +-----------+---------------------+
  37. | *Setter* | set_function(value) |
  38. +-----------+---------------------+
  39. | *Getter* | get_function() |
  40. +-----------+---------------------+
  41. A derivative type. See :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_Function>` for options.
  42. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  43. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  44. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  45. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  46. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  47. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`