Struct TextureSlot
Describes all the values pertaining to a particular texture slot in a material.
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public struct TextureSlot
Constructors
| Edit this page View SourceTextureSlot(string, TextureType, int, TextureMapping, int, float, TextureOperation, TextureWrapMode, TextureWrapMode, int)
Constructs a new TextureSlot.
Declaration
public TextureSlot(string filePath, TextureType typeSemantic, int texIndex, TextureMapping mapping, int uvIndex, float blendFactor, TextureOperation texOp, TextureWrapMode wrapModeU, TextureWrapMode wrapModeV, int flags)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | Texture filepath |
TextureType | typeSemantic | Texture type semantic |
int | texIndex | Texture index in the material |
TextureMapping | mapping | Texture mapping |
int | uvIndex | UV channel in mesh that corresponds to this texture |
float | blendFactor | Blend factor |
TextureOperation | texOp | Texture operation |
TextureWrapMode | wrapModeU | Texture wrap mode for U coordinate |
TextureWrapMode | wrapModeV | Texture wrap mode for V coordinate |
int | flags | Misc flags |
Fields
| Edit this page View SourceBlendFactor
Gets the blend factor.
Declaration
public float BlendFactor
Field Value
Type | Description |
---|---|
float |
FilePath
Gets the texture file path.
Declaration
public string FilePath
Field Value
Type | Description |
---|---|
string |
Flags
Gets misc flags.
Declaration
public int Flags
Field Value
Type | Description |
---|---|
int |
Mapping
Gets the texture mapping.
Declaration
public TextureMapping Mapping
Field Value
Type | Description |
---|---|
TextureMapping |
Operation
Gets the texture operation.
Declaration
public TextureOperation Operation
Field Value
Type | Description |
---|---|
TextureOperation |
TextureIndex
Gets the texture index in the material.
Declaration
public int TextureIndex
Field Value
Type | Description |
---|---|
int |
TextureType
Gets the texture type semantic.
Declaration
public TextureType TextureType
Field Value
Type | Description |
---|---|
TextureType |
UVIndex
Gets the UV channel index that corresponds to this texture from the mesh.
Declaration
public int UVIndex
Field Value
Type | Description |
---|---|
int |
WrapModeU
Gets the texture wrap mode for the U coordinate.
Declaration
public TextureWrapMode WrapModeU
Field Value
Type | Description |
---|---|
TextureWrapMode |
WrapModeV
Gets the texture wrap mode for the V coordinate.
Declaration
public TextureWrapMode WrapModeV
Field Value
Type | Description |
---|---|
TextureWrapMode |