class_visualshadernodetransformop.rst 4.0 KB

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