From Bob Kuehne, "* add easy multiple texture targets support for obj by refactoring texture
load into it's own method. * use new method from step 1 to load 'map_opacity' textures from .mtl files"
This commit is contained in:
@@ -263,6 +263,10 @@ bool Model::readMTL(std::istream& fin)
|
||||
{
|
||||
material->map_Ks = lastComponent(line+7);
|
||||
}
|
||||
else if (strncmp(line,"map_opacity ",7)==0)
|
||||
{
|
||||
material->map_opacity = lastComponent(line+7);
|
||||
}
|
||||
else if (strcmp(line,"refl")==0 || strncmp(line,"refl ",5)==0)
|
||||
{
|
||||
material->textureReflection = true;
|
||||
|
||||
Reference in New Issue
Block a user