update : implement obj-support for normal maps.

refactoring : some improvements for more readable code.

Signed-off-by: Kim <Kulling>
This commit is contained in:
Kim
2013-01-26 14:11:57 +01:00
parent 0f781516bf
commit fbe408dd2e
3 changed files with 41 additions and 31 deletions

View File

@@ -556,6 +556,9 @@ void ObjFileImporter::createMaterials(const ObjFile::Model* pModel, aiScene* pSc
if ( 0 != pCurrentMaterial->textureBump.length )
mat->AddProperty( &pCurrentMaterial->textureBump, AI_MATKEY_TEXTURE_HEIGHT(0));
if ( 0 != pCurrentMaterial->textureNormal.length )
mat->AddProperty( &pCurrentMaterial->textureNormal, AI_MATKEY_TEXTURE_NORMALS(0));
if ( 0 != pCurrentMaterial->textureDisp.length )
mat->AddProperty( &pCurrentMaterial->textureDisp, AI_MATKEY_TEXTURE_DISPLACEMENT(0) );