class_visualshadernodebooleanuniform.rst 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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/VisualShaderNodeBooleanUniform.xml.
  6. .. _class_VisualShaderNodeBooleanUniform:
  7. VisualShaderNodeBooleanUniform
  8. ==============================
  9. **Inherits:** :ref:`VisualShaderNodeUniform<class_VisualShaderNodeUniform>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A boolean uniform to be used within the visual shader graph.
  11. Description
  12. -----------
  13. Translated to ``uniform bool`` in the shader language.
  14. Properties
  15. ----------
  16. +-------------------------+---------------------------------------------------------------------------------------------------+-----------+
  17. | :ref:`bool<class_bool>` | :ref:`default_value<class_VisualShaderNodeBooleanUniform_property_default_value>` | ``false`` |
  18. +-------------------------+---------------------------------------------------------------------------------------------------+-----------+
  19. | :ref:`bool<class_bool>` | :ref:`default_value_enabled<class_VisualShaderNodeBooleanUniform_property_default_value_enabled>` | ``false`` |
  20. +-------------------------+---------------------------------------------------------------------------------------------------+-----------+
  21. Property Descriptions
  22. ---------------------
  23. .. _class_VisualShaderNodeBooleanUniform_property_default_value:
  24. - :ref:`bool<class_bool>` **default_value**
  25. +-----------+--------------------------+
  26. | *Default* | ``false`` |
  27. +-----------+--------------------------+
  28. | *Setter* | set_default_value(value) |
  29. +-----------+--------------------------+
  30. | *Getter* | get_default_value() |
  31. +-----------+--------------------------+
  32. A default value to be assigned within the shader.
  33. ----
  34. .. _class_VisualShaderNodeBooleanUniform_property_default_value_enabled:
  35. - :ref:`bool<class_bool>` **default_value_enabled**
  36. +-----------+----------------------------------+
  37. | *Default* | ``false`` |
  38. +-----------+----------------------------------+
  39. | *Setter* | set_default_value_enabled(value) |
  40. +-----------+----------------------------------+
  41. | *Getter* | is_default_value_enabled() |
  42. +-----------+----------------------------------+
  43. Enables usage of the :ref:`default_value<class_VisualShaderNodeBooleanUniform_property_default_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.)`