class_visualshadernodeinput.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/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. Description
  12. -----------
  13. 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).
  14. Tutorials
  15. ---------
  16. - :doc:`Shading reference index <../tutorials/shaders/shader_reference/index>`
  17. Properties
  18. ----------
  19. +-----------------------------+--------------------------------------------------------------------+--------------+
  20. | :ref:`String<class_String>` | :ref:`input_name<class_VisualShaderNodeInput_property_input_name>` | ``"[None]"`` |
  21. +-----------------------------+--------------------------------------------------------------------+--------------+
  22. Methods
  23. -------
  24. +-----------------------------+--------------------------------------------------------------------------------------------------------+
  25. | :ref:`String<class_String>` | :ref:`get_input_real_name<class_VisualShaderNodeInput_method_get_input_real_name>` **(** **)** |const| |
  26. +-----------------------------+--------------------------------------------------------------------------------------------------------+
  27. Signals
  28. -------
  29. .. _class_VisualShaderNodeInput_signal_input_type_changed:
  30. - **input_type_changed** **(** **)**
  31. Emitted when input is changed via :ref:`input_name<class_VisualShaderNodeInput_property_input_name>`.
  32. Property Descriptions
  33. ---------------------
  34. .. _class_VisualShaderNodeInput_property_input_name:
  35. - :ref:`String<class_String>` **input_name**
  36. +-----------+-----------------------+
  37. | *Default* | ``"[None]"`` |
  38. +-----------+-----------------------+
  39. | *Setter* | set_input_name(value) |
  40. +-----------+-----------------------+
  41. | *Getter* | get_input_name() |
  42. +-----------+-----------------------+
  43. One of the several input constants in lower-case style like: "vertex"(``VERTEX``) or "point_size"(``POINT_SIZE``).
  44. Method Descriptions
  45. -------------------
  46. .. _class_VisualShaderNodeInput_method_get_input_real_name:
  47. - :ref:`String<class_String>` **get_input_real_name** **(** **)** |const|
  48. 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"``.
  49. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  50. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  51. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  52. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  53. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  54. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`