Implement IBL diffuse part
[opengl.git] / skybox.hpp
index 0b523758a89f2c0d755e848975eb53f35c793c3f..40ed1a1b4c058e6ae13c41df0f58dc66ae84d79d 100644 (file)
@@ -12,9 +12,11 @@ class Skybox {
                // img must be HDR
                Skybox(const Image img);
                void draw(glm::mat4 proj, glm::mat4 view) const;
-               GLuint getTexture() const;
+               GLuint getTexture() const { return cubemapTexId; }
+               GLuint getIrradianceMap() const { return irradianceTexId; }
        private:
-               GLuint texId, vao;
+               GLuint hdrTexId, cubemapTexId, irradianceTexId;
+               GLuint vao;
                const Program program;
 };