VisualShaderNodeTextureUniform

Inherits: VisualShaderNodeUniform < VisualShaderNode < Resource < Reference < Object

Inherited By: VisualShaderNodeCubeMapUniform, 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

ColorDefault

color_default

0

TextureType

texture_type

0


Enumerations

enum TextureType:

TextureType TYPE_DATA = 0

No hints are added to the uniform declaration.

TextureType TYPE_COLOR = 1

Adds hint_albedo as hint to the uniform declaration for proper sRGB to linear conversion.

TextureType TYPE_NORMALMAP = 2

Adds hint_normal as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.

TextureType TYPE_ANISO = 3

Adds hint_aniso as hint to the uniform declaration to use for a flowmap.


enum ColorDefault:

ColorDefault COLOR_DEFAULT_WHITE = 0

Defaults to white color.

ColorDefault COLOR_DEFAULT_BLACK = 1

Defaults to black color.


Property Descriptions

ColorDefault color_default = 0

Sets the default color if no texture is assigned to the uniform.


TextureType texture_type = 0

Defines the type of data provided by the source texture. See TextureType for options.