class_visualshadernodeis.rst 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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/VisualShaderNodeIs.xml.
  6. .. _class_VisualShaderNodeIs:
  7. VisualShaderNodeIs
  8. ==================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A boolean comparison operator to be used within the visual shader graph.
  11. Description
  12. -----------
  13. Returns the boolean result of the comparison between ``INF`` or ``NaN`` and a scalar parameter.
  14. Properties
  15. ----------
  16. +---------------------------------------------------+-------------------------------------------------------------+-------+
  17. | :ref:`Function<enum_VisualShaderNodeIs_Function>` | :ref:`function<class_VisualShaderNodeIs_property_function>` | ``0`` |
  18. +---------------------------------------------------+-------------------------------------------------------------+-------+
  19. Enumerations
  20. ------------
  21. .. _enum_VisualShaderNodeIs_Function:
  22. .. _class_VisualShaderNodeIs_constant_FUNC_IS_INF:
  23. .. _class_VisualShaderNodeIs_constant_FUNC_IS_NAN:
  24. .. _class_VisualShaderNodeIs_constant_FUNC_MAX:
  25. enum **Function**:
  26. - **FUNC_IS_INF** = **0** --- Comparison with ``INF`` (Infinity).
  27. - **FUNC_IS_NAN** = **1** --- Comparison with ``NaN`` (Not a Number; denotes invalid numeric results, e.g. division by zero).
  28. - **FUNC_MAX** = **2** --- Represents the size of the :ref:`Function<enum_VisualShaderNodeIs_Function>` enum.
  29. Property Descriptions
  30. ---------------------
  31. .. _class_VisualShaderNodeIs_property_function:
  32. - :ref:`Function<enum_VisualShaderNodeIs_Function>` **function**
  33. +-----------+---------------------+
  34. | *Default* | ``0`` |
  35. +-----------+---------------------+
  36. | *Setter* | set_function(value) |
  37. +-----------+---------------------+
  38. | *Getter* | get_function() |
  39. +-----------+---------------------+
  40. The comparison function. See :ref:`Function<enum_VisualShaderNodeIs_Function>` for options.
  41. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  42. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  43. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  44. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  45. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  46. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`