SSAOBlurShader.h 455 B

1234567891011121314151617181920212223242526272829
  1. #ifndef SSAOBLURSHADER_H
  2. #define SSAOBLURSHADER_H
  3. #include "client/engine/shader/ShaderProgram.h"
  4. class SSAOBlurShader
  5. {
  6. public:
  7. SSAOBlurShader();
  8. virtual ~SSAOBlurShader();
  9. bool init();
  10. void resize();
  11. void preRender();
  12. void bindTexture(unsigned int textureUnit);
  13. private:
  14. // shader
  15. ShaderProgram program;
  16. // framebuffer
  17. GLuint framebuffer = 0;
  18. // textures
  19. GLuint texture = 0;
  20. };
  21. #endif