VisualShaderNodeTexture
Performs a 2D texture lookup within the visual shader graph.
Performs a 2D texture lookup within the visual shader graph.
Performs a lookup operation on the provided texture, with support for multiple texture sources to choose from.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VisualShaderNodeTextureConstructor
public VisualShaderNodeTexture();Properties3
SourceProperty
public VisualShaderNodeTexture.SourceEnum Source { get; set; }Determines the source for the lookup.
TextureProperty
public Texture2D Texture { get; set; }The source texture, if needed for the selected VisualShaderNodeTexture.Source.
TextureTypeProperty
public VisualShaderNodeTexture.TextureTypeEnum TextureType { get; set; }Specifies the type of the texture if VisualShaderNodeTexture.Source is set to VisualShaderNodeTexture.SourceEnum.Texture.
Methods6
GetSourceVisualShaderNodeTexture.SourceEnum
public VisualShaderNodeTexture.SourceEnum GetSource();VisualShaderNodeTexture.SourceEnumGetTextureTexture2D
public Texture2D GetTexture();Texture2DGetTextureTypeVisualShaderNodeTexture.TextureTypeEnum
public VisualShaderNodeTexture.TextureTypeEnum GetTextureType();VisualShaderNodeTexture.TextureTypeEnumSetSourcevoid
public void SetSource(VisualShaderNodeTexture.SourceEnum value);| Name | Type | Default |
|---|---|---|
value | VisualShaderNodeTexture.SourceEnum | — |
SetTexturevoid
public void SetTexture(Texture2D value);| Name | Type | Default |
|---|---|---|
value | Texture2D | — |
SetTextureTypevoid
public void SetTextureType(VisualShaderNodeTexture.TextureTypeEnum value);| Name | Type | Default |
|---|---|---|
value | VisualShaderNodeTexture.TextureTypeEnum | — |
VisualShaderNodeTexture.SourceEnum
| Value | Description |
|---|---|
Depth = 4 | Use the depth texture captured during the depth prepass. Only available when the depth prepass is used (i.e. in spatial shaders and in the forward_plus or gl_compatibility renderers). |
Max = 8 | Represents the size of the |
Port = 5 | Use the texture provided in the input port for this function. |
Roughness = 7 | Use the roughness buffer captured during the depth prepass. Only available when the normal-roughness buffer is available (i.e. in spatial shaders and in the forward_plus renderer). |
Screen = 1 | Use the current viewport's texture as the source. |
Source2DNormal = 3 | Use the texture from this shader's normal map built-in. |
Source2DTexture = 2 | Use the texture from this shader's texture built-in (e.g. a texture of a |
Source3DNormal = 6 | Use the normal buffer captured during the depth prepass. Only available when the normal-roughness buffer is available (i.e. in spatial shaders and in the forward_plus renderer). |
Texture = 0 | Use the texture given as an argument for this function. |
VisualShaderNodeTexture.TextureTypeEnum
| Value | Description |
|---|---|
Color = 1 | Adds |
Data = 0 | No hints are added to the uniform declaration. |
Max = 3 | Represents the size of the |
NormalMap = 2 | Adds |