saves value in the 'Ke'-Attribute in ObjMtl Files in COLOR_EMISSIVE

This commit is contained in:
Judith Hartmann
2014-03-16 21:30:10 +01:00
parent 9af1dfd48d
commit 7d1a704ed7
4 changed files with 11 additions and 0 deletions

View File

@@ -152,6 +152,9 @@ void ObjExporter :: WriteMaterialFile()
if(AI_SUCCESS == mat->Get(AI_MATKEY_COLOR_SPECULAR,c)) {
mOutputMat << "ks " << c.r << " " << c.g << " " << c.b << endl;
}
if(AI_SUCCESS == mat->Get(AI_MATKEY_COLOR_EMISSIVE,c)) {
mOutputMat << "ke " << c.r << " " << c.g << " " << c.b << endl;
}
float o;
if(AI_SUCCESS == mat->Get(AI_MATKEY_OPACITY,o)) {