Added alpha texture map (map_d)
parent
231e4e0cd0
commit
47e7667071
|
@ -182,6 +182,9 @@ void ObjExporter::WriteMaterialFile()
|
||||||
if(AI_SUCCESS == mat->Get(AI_MATKEY_TEXTURE_SHININESS(0),s)) {
|
if(AI_SUCCESS == mat->Get(AI_MATKEY_TEXTURE_SHININESS(0),s)) {
|
||||||
mOutputMat << "map_ns " << s.data << endl;
|
mOutputMat << "map_ns " << s.data << endl;
|
||||||
}
|
}
|
||||||
|
if(AI_SUCCESS == mat->Get(AI_MATKEY_TEXTURE_OPACITY(0),s)) {
|
||||||
|
mOutputMat << "map_d " << s.data << endl;
|
||||||
|
}
|
||||||
if(AI_SUCCESS == mat->Get(AI_MATKEY_TEXTURE_HEIGHT(0),s) || AI_SUCCESS == mat->Get(AI_MATKEY_TEXTURE_NORMALS(0),s)) {
|
if(AI_SUCCESS == mat->Get(AI_MATKEY_TEXTURE_HEIGHT(0),s) || AI_SUCCESS == mat->Get(AI_MATKEY_TEXTURE_NORMALS(0),s)) {
|
||||||
// implementations seem to vary here, so write both variants
|
// implementations seem to vary here, so write both variants
|
||||||
mOutputMat << "bump " << s.data << endl;
|
mOutputMat << "bump " << s.data << endl;
|
||||||
|
|
Loading…
Reference in New Issue