class_visualshadernodetransformop.rst 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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/VisualShaderNodeTransformOp.xml.
  6. .. _class_VisualShaderNodeTransformOp:
  7. VisualShaderNodeTransformOp
  8. ===========================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A :ref:`Transform3D<class_Transform3D>` operator to be used within the visual shader graph.
  11. Description
  12. -----------
  13. Applies :ref:`operator<class_VisualShaderNodeTransformOp_property_operator>` to two transform (4x4 matrices) inputs.
  14. Properties
  15. ----------
  16. +------------------------------------------------------------+----------------------------------------------------------------------+-------+
  17. | :ref:`Operator<enum_VisualShaderNodeTransformOp_Operator>` | :ref:`operator<class_VisualShaderNodeTransformOp_property_operator>` | ``0`` |
  18. +------------------------------------------------------------+----------------------------------------------------------------------+-------+
  19. Enumerations
  20. ------------
  21. .. _enum_VisualShaderNodeTransformOp_Operator:
  22. .. _class_VisualShaderNodeTransformOp_constant_OP_AxB:
  23. .. _class_VisualShaderNodeTransformOp_constant_OP_BxA:
  24. .. _class_VisualShaderNodeTransformOp_constant_OP_AxB_COMP:
  25. .. _class_VisualShaderNodeTransformOp_constant_OP_BxA_COMP:
  26. .. _class_VisualShaderNodeTransformOp_constant_OP_ADD:
  27. .. _class_VisualShaderNodeTransformOp_constant_OP_A_MINUS_B:
  28. .. _class_VisualShaderNodeTransformOp_constant_OP_B_MINUS_A:
  29. .. _class_VisualShaderNodeTransformOp_constant_OP_A_DIV_B:
  30. .. _class_VisualShaderNodeTransformOp_constant_OP_B_DIV_A:
  31. .. _class_VisualShaderNodeTransformOp_constant_OP_MAX:
  32. enum **Operator**:
  33. - **OP_AxB** = **0** --- Multiplies transform ``a`` by the transform ``b``.
  34. - **OP_BxA** = **1** --- Multiplies transform ``b`` by the transform ``a``.
  35. - **OP_AxB_COMP** = **2** --- Performs a component-wise multiplication of transform ``a`` by the transform ``b``.
  36. - **OP_BxA_COMP** = **3** --- Performs a component-wise multiplication of transform ``b`` by the transform ``a``.
  37. - **OP_ADD** = **4** --- Adds two transforms.
  38. - **OP_A_MINUS_B** = **5** --- Subtracts the transform ``a`` from the transform ``b``.
  39. - **OP_B_MINUS_A** = **6** --- Subtracts the transform ``b`` from the transform ``a``.
  40. - **OP_A_DIV_B** = **7** --- Divides the transform ``a`` by the transform ``b``.
  41. - **OP_B_DIV_A** = **8** --- Divides the transform ``b`` by the transform ``a``.
  42. - **OP_MAX** = **9** --- Represents the size of the :ref:`Operator<enum_VisualShaderNodeTransformOp_Operator>` enum.
  43. Property Descriptions
  44. ---------------------
  45. .. _class_VisualShaderNodeTransformOp_property_operator:
  46. - :ref:`Operator<enum_VisualShaderNodeTransformOp_Operator>` **operator**
  47. +-----------+---------------------+
  48. | *Default* | ``0`` |
  49. +-----------+---------------------+
  50. | *Setter* | set_operator(value) |
  51. +-----------+---------------------+
  52. | *Getter* | get_operator() |
  53. +-----------+---------------------+
  54. The type of the operation to be performed on the transforms. See :ref:`Operator<enum_VisualShaderNodeTransformOp_Operator>` for options.
  55. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  56. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  57. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  58. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  59. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  60. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`