X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=material.hpp;h=06cd2d044f6c3b43f97023bf4cff828b3b816bfc;hp=c28bcb452fe6a16f70c072e79ac21bd1f4a5b92e;hb=85f8f7278f24fe73fef1a19174376b155319072f;hpb=1043b5b05e00f830da26624eee8b25fb4dc4e4fc diff --git a/material.hpp b/material.hpp index c28bcb4..06cd2d0 100644 --- a/material.hpp +++ b/material.hpp @@ -12,11 +12,11 @@ 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 *diffuseMap = nullptr;