瀏覽代碼

Merge pull request #1079 from johnmaf/bugfix/ns

Remove scaling of specular exponent in OBJFileImporter.cpp
Kim Kulling 8 年之前
父節點
當前提交
56e9bce73f
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      code/ObjFileImporter.cpp

+ 0 - 3
code/ObjFileImporter.cpp

@@ -600,9 +600,6 @@ void ObjFileImporter::createMaterials(const ObjFile::Model* pModel, aiScene* pSc
 
         mat->AddProperty<int>( &sm, 1, AI_MATKEY_SHADING_MODEL);
 
-        // multiplying the specular exponent with 2 seems to yield better results
-        pCurrentMaterial->shineness *= 4.f;
-
         // Adding material colors
         mat->AddProperty( &pCurrentMaterial->ambient, 1, AI_MATKEY_COLOR_AMBIENT );
         mat->AddProperty( &pCurrentMaterial->diffuse, 1, AI_MATKEY_COLOR_DIFFUSE );