class_visualshadernodeuniform.rst 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 VisualShaderNodeUniform.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualShaderNodeUniform:
  6. VisualShaderNodeUniform
  7. =======================
  8. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`VisualShaderNodeBooleanUniform<class_VisualShaderNodeBooleanUniform>`, :ref:`VisualShaderNodeColorUniform<class_VisualShaderNodeColorUniform>`, :ref:`VisualShaderNodeFloatUniform<class_VisualShaderNodeFloatUniform>`, :ref:`VisualShaderNodeIntUniform<class_VisualShaderNodeIntUniform>`, :ref:`VisualShaderNodeTextureUniform<class_VisualShaderNodeTextureUniform>`, :ref:`VisualShaderNodeTransformUniform<class_VisualShaderNodeTransformUniform>`, :ref:`VisualShaderNodeVec2Uniform<class_VisualShaderNodeVec2Uniform>`, :ref:`VisualShaderNodeVec3Uniform<class_VisualShaderNodeVec3Uniform>`
  10. A base type for the uniforms within the visual shader graph.
  11. Description
  12. -----------
  13. A uniform represents a variable in the shader which is set externally, i.e. from the :ref:`ShaderMaterial<class_ShaderMaterial>`. Uniforms are exposed as properties in the :ref:`ShaderMaterial<class_ShaderMaterial>` and can be assigned from the inspector or from a script.
  14. Properties
  15. ----------
  16. +----------------------------------------------------------+--------------------------------------------------------------------------+--------+
  17. | :ref:`Qualifier<enum_VisualShaderNodeUniform_Qualifier>` | :ref:`qualifier<class_VisualShaderNodeUniform_property_qualifier>` | ``0`` |
  18. +----------------------------------------------------------+--------------------------------------------------------------------------+--------+
  19. | :ref:`String<class_String>` | :ref:`uniform_name<class_VisualShaderNodeUniform_property_uniform_name>` | ``""`` |
  20. +----------------------------------------------------------+--------------------------------------------------------------------------+--------+
  21. Enumerations
  22. ------------
  23. .. _enum_VisualShaderNodeUniform_Qualifier:
  24. .. _class_VisualShaderNodeUniform_constant_QUAL_NONE:
  25. .. _class_VisualShaderNodeUniform_constant_QUAL_GLOBAL:
  26. .. _class_VisualShaderNodeUniform_constant_QUAL_INSTANCE:
  27. .. _class_VisualShaderNodeUniform_constant_QUAL_MAX:
  28. enum **Qualifier**:
  29. - **QUAL_NONE** = **0**
  30. - **QUAL_GLOBAL** = **1**
  31. - **QUAL_INSTANCE** = **2**
  32. - **QUAL_MAX** = **3** --- Represents the size of the :ref:`Qualifier<enum_VisualShaderNodeUniform_Qualifier>` enum.
  33. Property Descriptions
  34. ---------------------
  35. .. _class_VisualShaderNodeUniform_property_qualifier:
  36. - :ref:`Qualifier<enum_VisualShaderNodeUniform_Qualifier>` **qualifier**
  37. +-----------+----------------------+
  38. | *Default* | ``0`` |
  39. +-----------+----------------------+
  40. | *Setter* | set_qualifier(value) |
  41. +-----------+----------------------+
  42. | *Getter* | get_qualifier() |
  43. +-----------+----------------------+
  44. ----
  45. .. _class_VisualShaderNodeUniform_property_uniform_name:
  46. - :ref:`String<class_String>` **uniform_name**
  47. +-----------+-------------------------+
  48. | *Default* | ``""`` |
  49. +-----------+-------------------------+
  50. | *Setter* | set_uniform_name(value) |
  51. +-----------+-------------------------+
  52. | *Getter* | get_uniform_name() |
  53. +-----------+-------------------------+
  54. Name of the uniform, by which it can be accessed through the :ref:`ShaderMaterial<class_ShaderMaterial>` properties.
  55. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  56. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  57. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  58. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  59. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  60. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`