123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/VisualShaderNodeParameter.xml.
- .. _class_VisualShaderNodeParameter:
- VisualShaderNodeParameter
- =========================
- **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`VisualShaderNodeBooleanParameter<class_VisualShaderNodeBooleanParameter>`, :ref:`VisualShaderNodeColorParameter<class_VisualShaderNodeColorParameter>`, :ref:`VisualShaderNodeFloatParameter<class_VisualShaderNodeFloatParameter>`, :ref:`VisualShaderNodeIntParameter<class_VisualShaderNodeIntParameter>`, :ref:`VisualShaderNodeTextureParameter<class_VisualShaderNodeTextureParameter>`, :ref:`VisualShaderNodeTransformParameter<class_VisualShaderNodeTransformParameter>`, :ref:`VisualShaderNodeUIntParameter<class_VisualShaderNodeUIntParameter>`, :ref:`VisualShaderNodeVec2Parameter<class_VisualShaderNodeVec2Parameter>`, :ref:`VisualShaderNodeVec3Parameter<class_VisualShaderNodeVec3Parameter>`, :ref:`VisualShaderNodeVec4Parameter<class_VisualShaderNodeVec4Parameter>`
- A base type for the parameters within the visual shader graph.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- A parameter represents a variable in the shader which is set externally, i.e. from the :ref:`ShaderMaterial<class_ShaderMaterial>`. Parameters are exposed as properties in the :ref:`ShaderMaterial<class_ShaderMaterial>` and can be assigned from the Inspector or from a script.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +------------------------------------------------------------+--------------------------------------------------------------------------------+--------+
- | :ref:`String<class_String>` | :ref:`parameter_name<class_VisualShaderNodeParameter_property_parameter_name>` | ``""`` |
- +------------------------------------------------------------+--------------------------------------------------------------------------------+--------+
- | :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` | :ref:`qualifier<class_VisualShaderNodeParameter_property_qualifier>` | ``0`` |
- +------------------------------------------------------------+--------------------------------------------------------------------------------+--------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_VisualShaderNodeParameter_Qualifier:
- .. rst-class:: classref-enumeration
- enum **Qualifier**:
- .. _class_VisualShaderNodeParameter_constant_QUAL_NONE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **QUAL_NONE** = ``0``
- The parameter will be tied to the :ref:`ShaderMaterial<class_ShaderMaterial>` using this shader.
- .. _class_VisualShaderNodeParameter_constant_QUAL_GLOBAL:
- .. rst-class:: classref-enumeration-constant
- :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **QUAL_GLOBAL** = ``1``
- The parameter will use a global value, defined in Project Settings.
- .. _class_VisualShaderNodeParameter_constant_QUAL_INSTANCE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **QUAL_INSTANCE** = ``2``
- The parameter will be tied to the node with attached :ref:`ShaderMaterial<class_ShaderMaterial>` using this shader.
- .. _class_VisualShaderNodeParameter_constant_QUAL_MAX:
- .. rst-class:: classref-enumeration-constant
- :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **QUAL_MAX** = ``3``
- Represents the size of the :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` enum.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_VisualShaderNodeParameter_property_parameter_name:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **parameter_name** = ``""``
- .. rst-class:: classref-property-setget
- - void **set_parameter_name** **(** :ref:`String<class_String>` value **)**
- - :ref:`String<class_String>` **get_parameter_name** **(** **)**
- Name of the parameter, by which it can be accessed through the :ref:`ShaderMaterial<class_ShaderMaterial>` properties.
- .. rst-class:: classref-item-separator
- ----
- .. _class_VisualShaderNodeParameter_property_qualifier:
- .. rst-class:: classref-property
- :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **qualifier** = ``0``
- .. rst-class:: classref-property-setget
- - void **set_qualifier** **(** :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` value **)**
- - :ref:`Qualifier<enum_VisualShaderNodeParameter_Qualifier>` **get_qualifier** **(** **)**
- Defines the scope of the parameter.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
|