Add support for parsing 'illum' and 'd'/'Tr' statements.

This commit is contained in:
Matt Pharr
2014-04-09 09:46:03 -07:00
parent 665c129488
commit 6372ccbef2
3 changed files with 34 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ typedef struct
float emission[3];
float shininess;
float ior; // index of refraction
float dissolve; // 1 == opaque; 0 == fully transparent
// illumination model (see http://www.fileformat.info/format/material/)
int illum;
std::string ambient_texname;
std::string diffuse_texname;