diff --git a/code/AssetLib/Obj/ObjFileMtlImporter.cpp b/code/AssetLib/Obj/ObjFileMtlImporter.cpp index 6464a55e0..9e45a0ce2 100644 --- a/code/AssetLib/Obj/ObjFileMtlImporter.cpp +++ b/code/AssetLib/Obj/ObjFileMtlImporter.cpp @@ -137,10 +137,14 @@ void ObjFileMtlImporter::load() { } break; case 'T': { ++m_DataIt; - if (*m_DataIt == 'f') // Material transmission - { + // Material transmission color + if (*m_DataIt == 'f') { ++m_DataIt; getColorRGBA(&m_pModel->m_pCurrentMaterial->transparent); + } else if (*m_DataIt == 'r') { + // Material transmission alpha value + ++m_DataIt; + getFloatValue(&m_pModel->m_pCurrentMaterial->alpha); } m_DataIt = skipLine(m_DataIt, m_DataItEnd, m_uiLine); } break;