VisualShaderNodeTextureUniform¶
Inherits: VisualShaderNodeUniform < VisualShaderNode < Resource < RefCounted < Object
Inherited By: VisualShaderNodeCubemapUniform, VisualShaderNodeTexture2DArrayUniform, VisualShaderNodeTexture3DUniform, 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¶
|
||
|
||
|
||
|
Enumerations¶
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 TextureType enum.
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 ColorDefault enum.
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 TextureFilter enum.
enum TextureRepeat:
REPEAT_DEFAULT = 0
REPEAT_ENABLED = 1
REPEAT_DISABLED = 2
REPEAT_MAX = 3 --- Represents the size of the TextureRepeat enum.
Property Descriptions¶
ColorDefault color_default
Default |
|
Setter |
set_color_default(value) |
Getter |
get_color_default() |
Sets the default color if no texture is assigned to the uniform.
TextureFilter texture_filter
Default |
|
Setter |
set_texture_filter(value) |
Getter |
get_texture_filter() |
Sets the texture filtering mode. See TextureFilter for options.
TextureRepeat texture_repeat
Default |
|
Setter |
set_texture_repeat(value) |
Getter |
get_texture_repeat() |
Sets the texture repeating mode. See TextureRepeat for options.
TextureType texture_type
Default |
|
Setter |
set_texture_type(value) |
Getter |
get_texture_type() |
Defines the type of data provided by the source texture. See TextureType for options.