class_visualshadernodeinput.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/VisualShaderNodeInput.xml.
  6. .. _class_VisualShaderNodeInput:
  7. VisualShaderNodeInput
  8. =====================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Represents the input shader parameter within the visual shader graph.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Gives access to input variables (built-ins) available for the shader. See the shading reference for the list of available built-ins for each shader type (check ``Tutorials`` section for link).
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`Shading reference index <../tutorials/shaders/shader_reference/index>`
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +-----------------------------+--------------------------------------------------------------------+--------------+
  25. | :ref:`String<class_String>` | :ref:`input_name<class_VisualShaderNodeInput_property_input_name>` | ``"[None]"`` |
  26. +-----------------------------+--------------------------------------------------------------------+--------------+
  27. .. rst-class:: classref-reftable-group
  28. Methods
  29. -------
  30. .. table::
  31. :widths: auto
  32. +-----------------------------+--------------------------------------------------------------------------------------------------------+
  33. | :ref:`String<class_String>` | :ref:`get_input_real_name<class_VisualShaderNodeInput_method_get_input_real_name>` **(** **)** |const| |
  34. +-----------------------------+--------------------------------------------------------------------------------------------------------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Signals
  39. -------
  40. .. _class_VisualShaderNodeInput_signal_input_type_changed:
  41. .. rst-class:: classref-signal
  42. **input_type_changed** **(** **)**
  43. Emitted when input is changed via :ref:`input_name<class_VisualShaderNodeInput_property_input_name>`.
  44. .. rst-class:: classref-section-separator
  45. ----
  46. .. rst-class:: classref-descriptions-group
  47. Property Descriptions
  48. ---------------------
  49. .. _class_VisualShaderNodeInput_property_input_name:
  50. .. rst-class:: classref-property
  51. :ref:`String<class_String>` **input_name** = ``"[None]"``
  52. .. rst-class:: classref-property-setget
  53. - void **set_input_name** **(** :ref:`String<class_String>` value **)**
  54. - :ref:`String<class_String>` **get_input_name** **(** **)**
  55. One of the several input constants in lower-case style like: "vertex" (``VERTEX``) or "point_size" (``POINT_SIZE``).
  56. .. rst-class:: classref-section-separator
  57. ----
  58. .. rst-class:: classref-descriptions-group
  59. Method Descriptions
  60. -------------------
  61. .. _class_VisualShaderNodeInput_method_get_input_real_name:
  62. .. rst-class:: classref-method
  63. :ref:`String<class_String>` **get_input_real_name** **(** **)** |const|
  64. Returns a translated name of the current constant in the Godot Shader Language. E.g. ``"ALBEDO"`` if the :ref:`input_name<class_VisualShaderNodeInput_property_input_name>` equal to ``"albedo"``.
  65. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  66. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  67. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  68. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  69. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  70. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  71. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`