X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=skybox.hpp;h=40ed1a1b4c058e6ae13c41df0f58dc66ae84d79d;hp=0b523758a89f2c0d755e848975eb53f35c793c3f;hb=9e43c799021b7bcca324b988aae44e98b05d10b4;hpb=a03f2bc751bbd7f91cbc2f52d2f0f6e753d6f776 diff --git a/skybox.hpp b/skybox.hpp index 0b52375..40ed1a1 100644 --- a/skybox.hpp +++ b/skybox.hpp @@ -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; };