123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- :github_url: hide
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the VisualShaderNodeTextureUniform.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_VisualShaderNodeTextureUniform:
- VisualShaderNodeTextureUniform
- ==============================
- **Inherits:** :ref:`VisualShaderNodeUniform<class_VisualShaderNodeUniform>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`VisualShaderNodeCubeMapUniform<class_VisualShaderNodeCubeMapUniform>`, :ref:`VisualShaderNodeTextureUniformTriplanar<class_VisualShaderNodeTextureUniformTriplanar>`
- Performs a uniform texture lookup within the visual shader graph.
- Description
- -----------
- Performs a lookup operation on the texture provided as a uniform for the shader.
- Properties
- ----------
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+-------+
- | :ref:`ColorDefault<enum_VisualShaderNodeTextureUniform_ColorDefault>` | :ref:`color_default<class_VisualShaderNodeTextureUniform_property_color_default>` | ``0`` |
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+-------+
- | :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` | :ref:`texture_type<class_VisualShaderNodeTextureUniform_property_texture_type>` | ``0`` |
- +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+-------+
- Enumerations
- ------------
- .. _enum_VisualShaderNodeTextureUniform_TextureType:
- .. _class_VisualShaderNodeTextureUniform_constant_TYPE_DATA:
- .. _class_VisualShaderNodeTextureUniform_constant_TYPE_COLOR:
- .. _class_VisualShaderNodeTextureUniform_constant_TYPE_NORMALMAP:
- .. _class_VisualShaderNodeTextureUniform_constant_TYPE_ANISO:
- enum **TextureType**:
- - **TYPE_DATA** = **0** --- No hints are added to the uniform declaration.
- - **TYPE_COLOR** = **1** --- Adds ``hint_albedo`` as hint to the uniform declaration for proper sRGB to linear conversion.
- - **TYPE_NORMALMAP** = **2** --- Adds ``hint_normal`` as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
- - **TYPE_ANISO** = **3** --- Adds ``hint_aniso`` as hint to the uniform declaration to use for a flowmap.
- ----
- .. _enum_VisualShaderNodeTextureUniform_ColorDefault:
- .. _class_VisualShaderNodeTextureUniform_constant_COLOR_DEFAULT_WHITE:
- .. _class_VisualShaderNodeTextureUniform_constant_COLOR_DEFAULT_BLACK:
- enum **ColorDefault**:
- - **COLOR_DEFAULT_WHITE** = **0** --- Defaults to white color.
- - **COLOR_DEFAULT_BLACK** = **1** --- Defaults to black color.
- Property Descriptions
- ---------------------
- .. _class_VisualShaderNodeTextureUniform_property_color_default:
- - :ref:`ColorDefault<enum_VisualShaderNodeTextureUniform_ColorDefault>` **color_default**
- +-----------+--------------------------+
- | *Default* | ``0`` |
- +-----------+--------------------------+
- | *Setter* | set_color_default(value) |
- +-----------+--------------------------+
- | *Getter* | get_color_default() |
- +-----------+--------------------------+
- Sets the default color if no texture is assigned to the uniform.
- ----
- .. _class_VisualShaderNodeTextureUniform_property_texture_type:
- - :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` **texture_type**
- +-----------+-------------------------+
- | *Default* | ``0`` |
- +-----------+-------------------------+
- | *Setter* | set_texture_type(value) |
- +-----------+-------------------------+
- | *Getter* | get_texture_type() |
- +-----------+-------------------------+
- Defines the type of data provided by the source texture. See :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` for options.
- .. |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.)`
|