X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;ds=sidebyside;f=material.hpp;h=06cd2d044f6c3b43f97023bf4cff828b3b816bfc;hb=c44e69ec78367fb2957324026894aef970f2481a;hp=968ea3651355780391fe6e897c973411b8181a44;hpb=37cba564a96018a5500e942498d4e48c0ebe73ed;p=opengl.git diff --git a/material.hpp b/material.hpp index 968ea36..06cd2d0 100644 --- a/material.hpp +++ b/material.hpp @@ -12,13 +12,15 @@ class Material { void bind() const; private: GLuint progId; - aiColor3D ambient, diffuse, specular; + aiColor4D ambient, diffuse, specular; ai_real shininess; struct Texture { - Texture(const std::string &path); + Texture(const std::string &file); GLuint texId; }; - Texture *texture = nullptr; + Texture *diffuseMap = nullptr; + Texture *specularMap = nullptr; + Texture *normalMap = nullptr; };