VisualShaderNodeTexture
Performs a texture lookup within the visual shader graph.
enum Source:
- SOURCE_SCREEN = 1 —- Use the current viewport’s texture as the source.
- SOURCE_2D_TEXTURE = 2 —- Use the texture from this shader’s texture built-in (e.g. a texture of a ).
- SOURCE_2D_NORMAL = 3 —- Use the texture from this shader’s normal map built-in.
- SOURCE_DEPTH = 4 —- Use the depth texture available for this shader.
- TYPE_DATA = 0 —- No hints are added to the uniform declaration.
- TYPE_COLOR = 1 —- Adds 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.
- Source source
Determines the source for the lookup. See for options.
- TextureType texture_type
Specifies the type of the texture if is set to SOURCE_TEXTURE. See for options.