Class OgreTextureTypeFromFilenameConfig
The Ogre importer will detect the texture usage from the filename. Normally a texture is loaded as a color map, if no target is specified in the material file. If this is enabled, then Assimp will try to detect the type from the texture filename postfix:
- Normal Maps: _n, _nrm, _nrml, _normal, _normals, _normalmap
- Specular Maps: _s, _spec, _specular, _specularmap
- Light Maps: _l, _light, _lightmap, _occ, _occlusion
- Displacement Maps: _dis, _displacement
Inherited Members
Namespace: SharpAssimp.Configs
Assembly: SharpAssimp.dll
Syntax
public sealed class OgreTextureTypeFromFilenameConfig : BooleanPropertyConfig
Constructors
| Edit this page View SourceOgreTextureTypeFromFilenameConfig(bool)
Constructs a new OgreTextureTypeFromFilenameConfig.
Declaration
public OgreTextureTypeFromFilenameConfig(bool fileNameDefinesTextureUsage)
Parameters
Type | Name | Description |
---|---|---|
bool | fileNameDefinesTextureUsage | True if the filename defines texture usage, false otherwise. |
Properties
| Edit this page View SourceOgreTextureTypeFromFilenameConfigName
Gets the string name used by OgreTextureTypeFromFilenameConfig.
Declaration
public static string OgreTextureTypeFromFilenameConfigName { get; }
Property Value
Type | Description |
---|---|
string |