Support specular highlight, bump, displacement and alpha texture(Remove non-standard "normal map"). Fixes #53.

This commit is contained in:
Syoyo Fujita
2015-09-01 20:20:10 +09:00
parent d299576eac
commit 7f2092b29f
3 changed files with 46 additions and 8 deletions

View File

@@ -26,10 +26,13 @@ typedef struct {
// illumination model (see http://www.fileformat.info/format/material/)
int illum;
std::string ambient_texname;
std::string diffuse_texname;
std::string specular_texname;
std::string normal_texname;
std::string ambient_texname; // map_Ka
std::string diffuse_texname; // map_Kd
std::string specular_texname; // map_Ks
std::string specular_highlight_texname; // map_Ns
std::string bump_texname; // map_bump, bump
std::string displacement_texname; // disp
std::string alpha_texname; // map_d
std::map<std::string, std::string> unknown_parameter;
} material_t;