Added default values to MTL materials

Former-commit-id: 102be4d1946047b47e05c356227a78d02e6c992b
This commit is contained in:
Lynix 2013-04-01 14:20:23 +02:00
parent f0445b85b5
commit a951736338
1 changed files with 7 additions and 7 deletions

View File

@ -18,9 +18,9 @@ class NzMTLParser
public:
struct Material
{
NzColor ambient;
NzColor diffuse;
NzColor specular;
NzColor ambient = NzColor::White;
NzColor diffuse = NzColor::White;
NzColor specular = NzColor::White;
NzString alphaMap;
NzString ambientMap;
NzString bumpMap;
@ -30,10 +30,10 @@ class NzMTLParser
NzString reflectionMap;
NzString shininessMap;
NzString specularMap;
float alpha;
float refractionIndex;
float shininess;
unsigned int illumModel;
float alpha = 1.f;
float refractionIndex = 1.f;
float shininess = 1.f;
unsigned int illumModel = 0;
};
NzMTLParser(NzInputStream& stream$);