X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=material.hpp;h=7735f630206b1abf9c5f7a4ecfb03abee5eec154;hp=c28bcb452fe6a16f70c072e79ac21bd1f4a5b92e;hb=be8759aec179d6d7bed58732134673870c596b4f;hpb=ba9c738e8660304aa0341eb44118e63502a4a009 diff --git a/material.hpp b/material.hpp index c28bcb4..7735f63 100644 --- a/material.hpp +++ b/material.hpp @@ -12,15 +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 *diffuseMap = nullptr; - Texture *specularMap = nullptr; - Texture *normalMap = nullptr; + Texture *albedo = nullptr; + Texture *normal = nullptr; + Texture *metallicRoughness = nullptr; + Texture *ambientOcclusion = nullptr; };