X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=skybox.hpp;fp=skybox.hpp;h=6961e8d861104d82843739e28978e399b7104d12;hp=40ed1a1b4c058e6ae13c41df0f58dc66ae84d79d;hb=d80972d96e5fcd444657f937ab2700039efa83d2;hpb=9e43c799021b7bcca324b988aae44e98b05d10b4 diff --git a/skybox.hpp b/skybox.hpp index 40ed1a1..6961e8d 100644 --- a/skybox.hpp +++ b/skybox.hpp @@ -14,10 +14,15 @@ class Skybox { void draw(glm::mat4 proj, glm::mat4 view) const; GLuint getTexture() const { return cubemapTexId; } GLuint getIrradianceMap() const { return irradianceTexId; } + GLuint getPrefilterMap() const { return prefilterTexId; } + GLuint getBRDFMap() const { return brdfMapTexId; } private: - GLuint hdrTexId, cubemapTexId, irradianceTexId; + GLuint hdrTexId, cubemapTexId, irradianceTexId, prefilterTexId, brdfMapTexId; + GLuint captureFBO, captureRBO; GLuint vao; const Program program; + void generatePrefilterMap() const; + void generateBRDFMap() const; }; #endif