X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=material.hpp;h=cb3d49eabffbe1f38af2c2dad798f104fd5fcef7;hp=06cd2d044f6c3b43f97023bf4cff828b3b816bfc;hb=4b4ca69c7cb67e03931d089a27cefa23be0544ac;hpb=85f8f7278f24fe73fef1a19174376b155319072f diff --git a/material.hpp b/material.hpp index 06cd2d0..cb3d49e 100644 --- a/material.hpp +++ b/material.hpp @@ -8,19 +8,19 @@ 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; struct Texture { - Texture(const std::string &file); + Texture(const aiString file, const aiScene &aiScene); GLuint texId; }; - Texture *diffuseMap = nullptr; - Texture *specularMap = nullptr; - Texture *normalMap = nullptr; + Texture *albedo = nullptr; + Texture *normal = nullptr; + Texture *metallicRoughness = nullptr; + Texture *ambientOcclusion = nullptr; };