Fix MTL "transmission filter" token
The "transmission filter" is currently set to Kt, which is undocumented. Adding support for the specified token of "Tf".
This commit is contained in:
@@ -802,7 +802,8 @@ void LoadMtl(std::map<std::string, int> &material_map,
|
||||
}
|
||||
|
||||
// transmittance
|
||||
if (token[0] == 'K' && token[1] == 't' && IS_SPACE((token[2]))) {
|
||||
if ((token[0] == 'K' && token[1] == 't' && IS_SPACE((token[2])))
|
||||
|| (token[0] == 'T' && token[1] == 'F' && IS_SPACE((token[2])))) {
|
||||
token += 2;
|
||||
float r, g, b;
|
||||
parseFloat3(r, g, b, token);
|
||||
|
||||
Reference in New Issue
Block a user