class ShadingTextureNode
TextureNode describes a texture source node in a shading network. When used in an input material, TextureName identifies a texture in the source TextureTable, and TexCoordName or TexCoordLevel selects the texture coordinate field on the input geometry used to sample it. These input field references are independent of MappingImageSettings::TexCoordName and TexCoordLevel, which select the destination UV field on the processed geometry.
Properties
| Property | Description |
|---|---|
| ColorSpaceOverride | Used to override the color space of the sampled texture. Set to Undefined to not override, and use the color space defined in the texture and/or image data object. |
| Name | The name of the ShadingTextureNode object. (Inherited from Object) |
| OffsetU | The OffsetU value, which is will be added to the U-coordinate when sampling. |
| OffsetV | The OffsetV value, which is will be added to the V-coordinate when sampling. |
| Rotation | The rotation value, which is used to rotate the UV coordinates when sampling. |
| TexCoordLevel | The texture coordinate level used to sample this texture during casting if this node's TexCoordName has not been set. When this node is part of an input material, it refers to the original geometry's UV field, not the destination field selected by MappingImageSettings::TexCoordLevel. Setting the TexCoordName is still required for generating shader code. |
| TexCoordName | The name of the texture coordinate field used to sample this texture. When this node is part of an input material, it refers to the original geometry's UV field, not the destination field selected by MappingImageSettings::TexCoordName. If not set, the material uses this node's TexCoordLevel (index) instead. The TexCoordName is required when generating shader data. |
| TextureName | The name of the texture in the texture table used for casting. If both this and texture image is set, the casting uses the texture image. |
| TextureWrapMode | The texture wrap mode in both U and V direction, which determines what happens to texture samples outside the 0-1 range. Setting this property affects both U and V direction, and getting this property returns the wrap mode in U direction in the case when they are different. |
| TextureWrapModeU | The texture wrap mode in U direction, which determines what happens to texture samples outside the 0-1 range. |
| TextureWrapModeV | The texture wrap mode in V direction, which determines what happens to texture samples outside the 0-1 range. |
| TileU | The TileU value, which is multiplied into the U-coordinate when sampling. |
| TileV | The TileV value, which is multiplied into the U-coordinate when sampling. |
| UseSRGB | The use of sRGB when decoding the texture into an RGBA value. |
Methods
| Method | Description |
|---|---|
| AddObserver | Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object) |
| GetClass | Get the name of the ShadingTextureNode class. (Inherited from Object) |
| GetDefaultParameterAlpha | The default parameter values. (Inherited from ShadingNode) |
| GetDefaultParameterBlue | The default parameter values. (Inherited from ShadingNode) |
| GetDefaultParameterGreen | The default parameter values. (Inherited from ShadingNode) |
| GetDefaultParameterRed | The default parameter values. (Inherited from ShadingNode) |
| GetParameterCount | The input count. (Inherited from ShadingNode) |
| GetParameterName | The name of a parameter. (Inherited from ShadingNode) |
| IsA | Returns true if ShadingTextureNode is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
| IsNull | Returns true if the ShadingTextureNode object is invalid. (Inherited from Object) |
| IsSameObjectAs | Returns true if the ShadingTextureNode object is valid. (Inherited from Object) |
| NonNull | Returns true if the ShadingTextureNode object is valid. (Inherited from Object) |
| PrintInfo | Prints the content/info of the ShadingTextureNode object to the log. (Inherited from Object) |
| RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
| SetDefaultParameter | The default parameter values. (Inherited from ShadingNode) |
Static methods
| Method | Description |
|---|---|
| IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
| SafeCast | SafeCast makes sure the input object is of a class that can be cast into spShadingTextureNode, and if this is the case, returns the object cast into spShadingTextureNode. (Inherited from Object) |
Properties details
ColorSpaceOverride
Used to override the color space of the sampled texture. Set to Undefined to not override, and use the color space defined in the texture and/or image data object.
Name
The name of the ShadingTextureNode object. (Inherited from Object)
OffsetU
The OffsetU value, which is will be added to the U-coordinate when sampling.
OffsetV
The OffsetV value, which is will be added to the V-coordinate when sampling.
Rotation
The rotation value, which is used to rotate the UV coordinates when sampling.
TexCoordLevel
The texture coordinate level used to sample this texture during casting if this node's TexCoordName has not been set. When this node is part of an input material, it refers to the original geometry's UV field, not the destination field selected by MappingImageSettings::TexCoordLevel. Setting the TexCoordName is still required for generating shader code.
TexCoordName
The name of the texture coordinate field used to sample this texture. When this node is part of an input material, it refers to the original geometry's UV field, not the destination field selected by MappingImageSettings::TexCoordName. If not set, the material uses this node's TexCoordLevel (index) instead. The TexCoordName is required when generating shader data.
TextureName
The name of the texture in the texture table used for casting. If both this and texture image is set, the casting uses the texture image.
TextureWrapMode
The texture wrap mode in both U and V direction, which determines what happens to texture samples outside the 0-1 range. Setting this property affects both U and V direction, and getting this property returns the wrap mode in U direction in the case when they are different.
TextureWrapModeU
The texture wrap mode in U direction, which determines what happens to texture samples outside the 0-1 range.
TextureWrapModeV
The texture wrap mode in V direction, which determines what happens to texture samples outside the 0-1 range.
TileU
The TileU value, which is multiplied into the U-coordinate when sampling.
TileV
The TileV value, which is multiplied into the U-coordinate when sampling.
UseSRGB
The use of sRGB when decoding the texture into an RGBA value.
WARNING
This property is marked as deprecated and will be removed in a future version.
Use ColorSpaceOverride instead.
Methods details
AddObserver
Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
GetClass
Get the name of the ShadingTextureNode class. (Inherited from Object)
GetDefaultParameterAlpha
The default parameter values.
GetDefaultParameterBlue
The default parameter values.
GetDefaultParameterGreen
The default parameter values.
GetDefaultParameterRed
The default parameter values.
GetParameterCount
The input count.
GetParameterName
The name of a parameter.
IsA
Returns true if ShadingTextureNode is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNull
Returns true if the ShadingTextureNode object is invalid. (Inherited from Object)
IsSameObjectAs
Returns true if the ShadingTextureNode object is valid. (Inherited from Object)
NonNull
Returns true if the ShadingTextureNode object is valid. (Inherited from Object)
PrintInfo
Prints the content/info of the ShadingTextureNode object to the log. (Inherited from Object)
RemoveObserver
Removes a previously added observer object. (Inherited from Object)
SetDefaultParameter
The default parameter values.
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spShadingTextureNode, and if this is the case, returns the object cast into spShadingTextureNode. (Inherited from Object)
