projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow materials to not have some properties
[opengl.git]
/
skybox.hpp
diff --git
a/skybox.hpp
b/skybox.hpp
index 40ed1a1b4c058e6ae13c41df0f58dc66ae84d79d..6961e8d861104d82843739e28978e399b7104d12 100644
(file)
--- 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; }
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:
private:
- GLuint hdrTexId, cubemapTexId, irradianceTexId;
+ GLuint hdrTexId, cubemapTexId, irradianceTexId, prefilterTexId, brdfMapTexId;
+ GLuint captureFBO, captureRBO;
GLuint vao;
const Program program;
GLuint vao;
const Program program;
+ void generatePrefilterMap() const;
+ void generateBRDFMap() const;
};
#endif
};
#endif