projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update shader errors, add back brdffrag
[opengl.git]
/
skybox.hpp
diff --git
a/skybox.hpp
b/skybox.hpp
index 0b523758a89f2c0d755e848975eb53f35c793c3f..6961e8d861104d82843739e28978e399b7104d12 100644
(file)
--- a/
skybox.hpp
+++ b/
skybox.hpp
@@
-12,10
+12,17
@@
class Skybox {
// img must be HDR
Skybox(const Image img);
void draw(glm::mat4 proj, glm::mat4 view) const;
// 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; }
+ GLuint getPrefilterMap() const { return prefilterTexId; }
+ GLuint getBRDFMap() const { return brdfMapTexId; }
private:
private:
- GLuint texId, vao;
+ GLuint hdrTexId, cubemapTexId, irradianceTexId, prefilterTexId, brdfMapTexId;
+ GLuint captureFBO, captureRBO;
+ GLuint vao;
const Program program;
const Program program;
+ void generatePrefilterMap() const;
+ void generateBRDFMap() const;
};
#endif
};
#endif