WorldPostShader.h 462 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef WORLDPOSTSHADER_H
  2. #define WORLDPOSTSHADER_H
  3. #include "client/engine/shader/ShaderProgram.h"
  4. class WorldPostShader
  5. {
  6. public:
  7. WorldPostShader();
  8. virtual ~WorldPostShader();
  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