class_visualshadernodederivativefunc.rst 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeDerivativeFunc.xml.
  6. .. _class_VisualShaderNodeDerivativeFunc:
  7. VisualShaderNodeDerivativeFunc
  8. ==============================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Calculates a derivative within the visual shader graph.
  11. Description
  12. -----------
  13. This node is only available in ``Fragment`` and ``Light`` visual shaders.
  14. Properties
  15. ----------
  16. +---------------------------------------------------------------+-------------------------------------------------------------------------+-------+
  17. | :ref:`Function<enum_VisualShaderNodeDerivativeFunc_Function>` | :ref:`function<class_VisualShaderNodeDerivativeFunc_property_function>` | ``0`` |
  18. +---------------------------------------------------------------+-------------------------------------------------------------------------+-------+
  19. | :ref:`OpType<enum_VisualShaderNodeDerivativeFunc_OpType>` | :ref:`op_type<class_VisualShaderNodeDerivativeFunc_property_op_type>` | ``0`` |
  20. +---------------------------------------------------------------+-------------------------------------------------------------------------+-------+
  21. Enumerations
  22. ------------
  23. .. _enum_VisualShaderNodeDerivativeFunc_OpType:
  24. .. _class_VisualShaderNodeDerivativeFunc_constant_OP_TYPE_SCALAR:
  25. .. _class_VisualShaderNodeDerivativeFunc_constant_OP_TYPE_VECTOR_2D:
  26. .. _class_VisualShaderNodeDerivativeFunc_constant_OP_TYPE_VECTOR_3D:
  27. .. _class_VisualShaderNodeDerivativeFunc_constant_OP_TYPE_VECTOR_4D:
  28. .. _class_VisualShaderNodeDerivativeFunc_constant_OP_TYPE_MAX:
  29. enum **OpType**:
  30. - **OP_TYPE_SCALAR** = **0** --- A floating-point scalar.
  31. - **OP_TYPE_VECTOR_2D** = **1** --- A 2D vector type.
  32. - **OP_TYPE_VECTOR_3D** = **2** --- A 3D vector type.
  33. - **OP_TYPE_VECTOR_4D** = **3** --- A 4D vector type.
  34. - **OP_TYPE_MAX** = **4** --- Represents the size of the :ref:`OpType<enum_VisualShaderNodeDerivativeFunc_OpType>` enum.
  35. ----
  36. .. _enum_VisualShaderNodeDerivativeFunc_Function:
  37. .. _class_VisualShaderNodeDerivativeFunc_constant_FUNC_SUM:
  38. .. _class_VisualShaderNodeDerivativeFunc_constant_FUNC_X:
  39. .. _class_VisualShaderNodeDerivativeFunc_constant_FUNC_Y:
  40. .. _class_VisualShaderNodeDerivativeFunc_constant_FUNC_MAX:
  41. enum **Function**:
  42. - **FUNC_SUM** = **0** --- Sum of absolute derivative in ``x`` and ``y``.
  43. - **FUNC_X** = **1** --- Derivative in ``x`` using local differencing.
  44. - **FUNC_Y** = **2** --- Derivative in ``y`` using local differencing.
  45. - **FUNC_MAX** = **3** --- Represents the size of the :ref:`Function<enum_VisualShaderNodeDerivativeFunc_Function>` enum.
  46. Property Descriptions
  47. ---------------------
  48. .. _class_VisualShaderNodeDerivativeFunc_property_function:
  49. - :ref:`Function<enum_VisualShaderNodeDerivativeFunc_Function>` **function**
  50. +-----------+---------------------+
  51. | *Default* | ``0`` |
  52. +-----------+---------------------+
  53. | *Setter* | set_function(value) |
  54. +-----------+---------------------+
  55. | *Getter* | get_function() |
  56. +-----------+---------------------+
  57. A derivative function type. See :ref:`Function<enum_VisualShaderNodeDerivativeFunc_Function>` for options.
  58. ----
  59. .. _class_VisualShaderNodeDerivativeFunc_property_op_type:
  60. - :ref:`OpType<enum_VisualShaderNodeDerivativeFunc_OpType>` **op_type**
  61. +-----------+--------------------+
  62. | *Default* | ``0`` |
  63. +-----------+--------------------+
  64. | *Setter* | set_op_type(value) |
  65. +-----------+--------------------+
  66. | *Getter* | get_op_type() |
  67. +-----------+--------------------+
  68. A type of operands and returned value. See :ref:`OpType<enum_VisualShaderNodeDerivativeFunc_OpType>` for options.
  69. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  70. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  71. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  72. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  73. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  74. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`