Skip to content

Commit

Permalink
Merge pull request #2563 from mosra/stl-white-ambient
Browse files Browse the repository at this point in the history
Fix white ambient in STL loader
  • Loading branch information
kimkulling committed Jul 30, 2019
2 parents 1d565b0 + deee43f commit 1c3e934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/STL/STLLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void STLImporter::InternReadFile( const std::string& pFile, aiScene* pScene, IOS
}
pcMat->AddProperty(&clrDiffuse,1,AI_MATKEY_COLOR_DIFFUSE);
pcMat->AddProperty(&clrDiffuse,1,AI_MATKEY_COLOR_SPECULAR);
clrDiffuse = aiColor4D( ai_real(1.0), ai_real(1.0), ai_real(1.0), ai_real(1.0));
clrDiffuse = aiColor4D( ai_real(0.05), ai_real(0.05), ai_real(0.05), ai_real(1.0));
pcMat->AddProperty(&clrDiffuse,1,AI_MATKEY_COLOR_AMBIENT);

pScene->mNumMaterials = 1;
Expand Down

0 comments on commit 1c3e934

Please sign in to comment.