X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=material.hpp;h=7735f630206b1abf9c5f7a4ecfb03abee5eec154;hp=0fb6f5da615295f72c463a24f9a2b12c280769b0;hb=610bb8ddab4ec871cadfed0a0b66695b8fea41a4;hpb=8abaf8f77191e1c660def0832d8036a8b4639ba8 diff --git a/material.hpp b/material.hpp index 0fb6f5d..7735f63 100644 --- a/material.hpp +++ b/material.hpp @@ -13,14 +13,15 @@ class Material { private: GLuint progId; aiColor4D ambient, diffuse, specular; - ai_real shininess, reflectivity; + ai_real shininess, reflectivity, refractiveIndex, opacity; struct Texture { 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; };