X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=material.hpp;h=7735f630206b1abf9c5f7a4ecfb03abee5eec154;hp=968ea3651355780391fe6e897c973411b8181a44;hb=be8759aec179d6d7bed58732134673870c596b4f;hpb=37cba564a96018a5500e942498d4e48c0ebe73ed diff --git a/material.hpp b/material.hpp index 968ea36..7735f63 100644 --- a/material.hpp +++ b/material.hpp @@ -12,13 +12,16 @@ class Material { void bind() const; private: GLuint progId; - aiColor3D ambient, diffuse, specular; - ai_real shininess; + aiColor4D ambient, diffuse, specular; + ai_real shininess, reflectivity, refractiveIndex, opacity; struct Texture { - Texture(const std::string &path); + Texture(const std::string &file); GLuint texId; }; - Texture *texture = nullptr; + Texture *albedo = nullptr; + Texture *normal = nullptr; + Texture *metallicRoughness = nullptr; + Texture *ambientOcclusion = nullptr; };