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:
Robert Osfield
2008-05-12 10:18:41 +00:00
parent db2cf75b23
commit 61cb0833b9
3 changed files with 62 additions and 47 deletions

View File

@@ -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;