// 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;
};