class_visualshadernodevectorderivativefunc.rst 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:`Reference<class_Reference>` **<** :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. enum **Function**:
  25. - **FUNC_SUM** = **0** --- Sum of absolute derivative in ``x`` and ``y``.
  26. - **FUNC_X** = **1** --- Derivative in ``x`` using local differencing.
  27. - **FUNC_Y** = **2** --- Derivative in ``y`` using local differencing.
  28. Property Descriptions
  29. ---------------------
  30. .. _class_VisualShaderNodeVectorDerivativeFunc_property_function:
  31. - :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_Function>` **function**
  32. +-----------+---------------------+
  33. | *Default* | ``0`` |
  34. +-----------+---------------------+
  35. | *Setter* | set_function(value) |
  36. +-----------+---------------------+
  37. | *Getter* | get_function() |
  38. +-----------+---------------------+
  39. A derivative type. See :ref:`Function<enum_VisualShaderNodeVectorDerivativeFunc_Function>` for options.
  40. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  41. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  42. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`