:github_url: hide .. Generated automatically by doc/tools/make_rst.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//doc_classes. .. _class_VisualShaderNodeTextureUniform: VisualShaderNodeTextureUniform ============================== **Inherits:** :ref:`VisualShaderNodeUniform` **<** :ref:`VisualShaderNode` **<** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` **Inherited By:** :ref:`VisualShaderNodeCubemapUniform`, :ref:`VisualShaderNodeTexture2DArrayUniform`, :ref:`VisualShaderNodeTexture3DUniform`, :ref:`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` | :ref:`color_default` | ``0`` | +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------+ | :ref:`TextureFilter` | :ref:`texture_filter` | ``0`` | +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------+ | :ref:`TextureRepeat` | :ref:`texture_repeat` | ``0`` | +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------+ | :ref:`TextureType` | :ref:`texture_type` | ``0`` | +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------+ Enumerations ------------ .. _enum_VisualShaderNodeTextureUniform_TextureType: .. _class_VisualShaderNodeTextureUniform_constant_TYPE_DATA: .. _class_VisualShaderNodeTextureUniform_constant_TYPE_COLOR: .. _class_VisualShaderNodeTextureUniform_constant_TYPE_NORMAL_MAP: .. _class_VisualShaderNodeTextureUniform_constant_TYPE_ANISOTROPY: .. _class_VisualShaderNodeTextureUniform_constant_TYPE_MAX: 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_NORMAL_MAP** = **2** --- Adds ``hint_normal`` as hint to the uniform declaration, which internally converts the texture for proper usage as normal map. - **TYPE_ANISOTROPY** = **3** --- Adds ``hint_anisotropy`` as hint to the uniform declaration to use for a flowmap. - **TYPE_MAX** = **4** --- Represents the size of the :ref:`TextureType` enum. ---- .. _enum_VisualShaderNodeTextureUniform_ColorDefault: .. _class_VisualShaderNodeTextureUniform_constant_COLOR_DEFAULT_WHITE: .. _class_VisualShaderNodeTextureUniform_constant_COLOR_DEFAULT_BLACK: .. _class_VisualShaderNodeTextureUniform_constant_COLOR_DEFAULT_MAX: enum **ColorDefault**: - **COLOR_DEFAULT_WHITE** = **0** --- Defaults to white color. - **COLOR_DEFAULT_BLACK** = **1** --- Defaults to black color. - **COLOR_DEFAULT_MAX** = **2** --- Represents the size of the :ref:`ColorDefault` enum. ---- .. _enum_VisualShaderNodeTextureUniform_TextureFilter: .. _class_VisualShaderNodeTextureUniform_constant_FILTER_DEFAULT: .. _class_VisualShaderNodeTextureUniform_constant_FILTER_NEAREST: .. _class_VisualShaderNodeTextureUniform_constant_FILTER_LINEAR: .. _class_VisualShaderNodeTextureUniform_constant_FILTER_NEAREST_MIPMAP: .. _class_VisualShaderNodeTextureUniform_constant_FILTER_LINEAR_MIPMAP: .. _class_VisualShaderNodeTextureUniform_constant_FILTER_NEAREST_MIPMAP_ANISOTROPIC: .. _class_VisualShaderNodeTextureUniform_constant_FILTER_LINEAR_MIPMAP_ANISOTROPIC: .. _class_VisualShaderNodeTextureUniform_constant_FILTER_MAX: enum **TextureFilter**: - **FILTER_DEFAULT** = **0** - **FILTER_NEAREST** = **1** - **FILTER_LINEAR** = **2** - **FILTER_NEAREST_MIPMAP** = **3** - **FILTER_LINEAR_MIPMAP** = **4** - **FILTER_NEAREST_MIPMAP_ANISOTROPIC** = **5** - **FILTER_LINEAR_MIPMAP_ANISOTROPIC** = **6** - **FILTER_MAX** = **7** --- Represents the size of the :ref:`TextureFilter` enum. ---- .. _enum_VisualShaderNodeTextureUniform_TextureRepeat: .. _class_VisualShaderNodeTextureUniform_constant_REPEAT_DEFAULT: .. _class_VisualShaderNodeTextureUniform_constant_REPEAT_ENABLED: .. _class_VisualShaderNodeTextureUniform_constant_REPEAT_DISABLED: .. _class_VisualShaderNodeTextureUniform_constant_REPEAT_MAX: enum **TextureRepeat**: - **REPEAT_DEFAULT** = **0** - **REPEAT_ENABLED** = **1** - **REPEAT_DISABLED** = **2** - **REPEAT_MAX** = **3** --- Represents the size of the :ref:`TextureRepeat` enum. Property Descriptions --------------------- .. _class_VisualShaderNodeTextureUniform_property_color_default: - :ref:`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_filter: - :ref:`TextureFilter` **texture_filter** +-----------+---------------------------+ | *Default* | ``0`` | +-----------+---------------------------+ | *Setter* | set_texture_filter(value) | +-----------+---------------------------+ | *Getter* | get_texture_filter() | +-----------+---------------------------+ Sets the texture filtering mode. See :ref:`TextureFilter` for options. ---- .. _class_VisualShaderNodeTextureUniform_property_texture_repeat: - :ref:`TextureRepeat` **texture_repeat** +-----------+---------------------------+ | *Default* | ``0`` | +-----------+---------------------------+ | *Setter* | set_texture_repeat(value) | +-----------+---------------------------+ | *Getter* | get_texture_repeat() | +-----------+---------------------------+ Sets the texture repeating mode. See :ref:`TextureRepeat` for options. ---- .. _class_VisualShaderNodeTextureUniform_property_texture_type: - :ref:`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` 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.)` .. |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.)`