class
ShadingTextureNode ​
TextureNode describes a texture source node in a shading network.
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 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. |
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 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)