update .mtl loader (Ke, Ns, map_Ka, map_Kd, map_Ks, map_Ns)

This commit is contained in:
YarmUI
2012-08-21 18:35:37 +09:00
parent 66528fbd6c
commit d62fdaf89d
3 changed files with 81 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
#include <string>
#include <vector>
#include <map>
namespace tinyobj {
@@ -19,10 +20,14 @@ typedef struct
float diffuse[3];
float specular[3];
float transmittance[3];
float emission[3];
float shininess;
std::string ambient_texname;
std::string diffuse_texname;
std::string specular_texname;
std::string normal_texname;
std::map<std::string, std::string> unknown_parameter;
} material_t;
typedef struct