class_visualshadernodeclamp.rst 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 VisualShaderNodeClamp.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualShaderNodeClamp:
  6. VisualShaderNodeClamp
  7. =====================
  8. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Clamps a value within the visual shader graph.
  10. Description
  11. -----------
  12. Constrains a value to lie between ``min`` and ``max`` values.
  13. Properties
  14. ----------
  15. +--------------------------------------------------+--------------------------------------------------------------+-------+
  16. | :ref:`OpType<enum_VisualShaderNodeClamp_OpType>` | :ref:`op_type<class_VisualShaderNodeClamp_property_op_type>` | ``0`` |
  17. +--------------------------------------------------+--------------------------------------------------------------+-------+
  18. Enumerations
  19. ------------
  20. .. _enum_VisualShaderNodeClamp_OpType:
  21. .. _class_VisualShaderNodeClamp_constant_OP_TYPE_FLOAT:
  22. .. _class_VisualShaderNodeClamp_constant_OP_TYPE_INT:
  23. .. _class_VisualShaderNodeClamp_constant_OP_TYPE_VECTOR_2D:
  24. .. _class_VisualShaderNodeClamp_constant_OP_TYPE_VECTOR_3D:
  25. .. _class_VisualShaderNodeClamp_constant_OP_TYPE_MAX:
  26. enum **OpType**:
  27. - **OP_TYPE_FLOAT** = **0** --- A floating-point scalar.
  28. - **OP_TYPE_INT** = **1** --- An integer scalar.
  29. - **OP_TYPE_VECTOR_2D** = **2** --- A 2D vector type.
  30. - **OP_TYPE_VECTOR_3D** = **3** --- A 3D vector type.
  31. - **OP_TYPE_MAX** = **4** --- Represents the size of the :ref:`OpType<enum_VisualShaderNodeClamp_OpType>` enum.
  32. Property Descriptions
  33. ---------------------
  34. .. _class_VisualShaderNodeClamp_property_op_type:
  35. - :ref:`OpType<enum_VisualShaderNodeClamp_OpType>` **op_type**
  36. +-----------+--------------------+
  37. | *Default* | ``0`` |
  38. +-----------+--------------------+
  39. | *Setter* | set_op_type(value) |
  40. +-----------+--------------------+
  41. | *Getter* | get_op_type() |
  42. +-----------+--------------------+
  43. A type of operands and returned value.
  44. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  45. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  46. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  47. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  48. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  49. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`