Skip to content
On this page

class ShadingTextureNode

TextureNode describes a texture source node in a shading network.

Properties

PropertyDescription
ColorSpaceOverrideUsed 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.
NameThe name of the ShadingTextureNode object. (Inherited from Object)
OffsetUThe OffsetU value, which is will be added to the U-coordinate when sampling.
OffsetVThe OffsetV value, which is will be added to the V-coordinate when sampling.
RotationThe rotation value, which is used to rotate the UV coordinates when sampling.
TexCoordLevelThe texture texture coordinate level. The texture level is used during casting if the TexCoordName has not been set. Setting the TexCoordName is still required for generating shader code.
TexCoordNameThe name of the texture coordinate. If not set, the material uses the texture level (index) instead. The TexCoordName is required when generating shader data.
TextureNameThe 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.
TextureWrapModeThe 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.
TextureWrapModeUThe texture wrap mode in U direction, which determines what happens to texture samples outside the 0-1 range.
TextureWrapModeVThe texture wrap mode in V direction, which determines what happens to texture samples outside the 0-1 range.
TileUThe TileU value, which is multiplied into the U-coordinate when sampling.
TileVThe TileV value, which is multiplied into the U-coordinate when sampling.
UseSRGBThe use of sRGB when decoding the texture into an RGBA value.

Methods

MethodDescription
AddObserverAdds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
GetClassGet the name of the ShadingTextureNode class. (Inherited from Object)
GetDefaultParameterAlphaThe default parameter values. (Inherited from ShadingNode)
GetDefaultParameterBlueThe default parameter values. (Inherited from ShadingNode)
GetDefaultParameterGreenThe default parameter values. (Inherited from ShadingNode)
GetDefaultParameterRedThe default parameter values. (Inherited from ShadingNode)
GetParameterCountThe input count. (Inherited from ShadingNode)
GetParameterNameThe name of a parameter. (Inherited from ShadingNode)
IsAReturns true if ShadingTextureNode is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNullReturns true if the ShadingTextureNode object is invalid. (Inherited from Object)
IsSameObjectAsReturns true if the ShadingTextureNode object is valid. (Inherited from Object)
NonNullReturns true if the ShadingTextureNode object is valid. (Inherited from Object)
PrintInfoPrints the content/info of the ShadingTextureNode object to the log. (Inherited from Object)
RemoveObserverRemoves a previously added observer object. (Inherited from Object)
SetDefaultParameterThe default parameter values. (Inherited from ShadingNode)

Static methods

MethodDescription
IsClassAReturns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCastSafeCast 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 texture coordinate level. The texture level is used during casting if the TexCoordName has not been set. Setting the TexCoordName is still required for generating shader code.

TexCoordName

The name of the texture coordinate. If not set, the material uses the texture level (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)