X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=material.hpp;h=cb3d49eabffbe1f38af2c2dad798f104fd5fcef7;hp=7735f630206b1abf9c5f7a4ecfb03abee5eec154;hb=17dcc398b9a5d1a6a287c01dff7fc7cf2b792372;hpb=0291188124d08368ce28b308482604218bd75393 diff --git a/material.hpp b/material.hpp index 7735f63..cb3d49e 100644 --- a/material.hpp +++ b/material.hpp @@ -8,15 +8,14 @@ class Material { public: - Material(const aiMaterial &aiMaterial, GLuint progId); + Material(const aiMaterial &aiMaterial, const aiScene &aiScene, GLuint progId); void bind() const; private: GLuint progId; aiColor4D ambient, diffuse, specular; - ai_real shininess, reflectivity, refractiveIndex, opacity; struct Texture { - Texture(const std::string &file); + Texture(const aiString file, const aiScene &aiScene); GLuint texId; }; Texture *albedo = nullptr;