WIP, trying to get blur to work with mipmaps

This commit is contained in:
Tleety
2016-03-10 12:18:06 +01:00
parent 592edf7dba
commit a2244e87ad
7 changed files with 106 additions and 53 deletions
+4 -2
View File
@@ -39,6 +39,7 @@ public:
private:
void GaussianLodPass(GLuint mipMap, GLuint texture);
Texture* m_BlackTexture;
Model* m_ScreenQuad;
@@ -47,12 +48,13 @@ private:
//const LightCullingPass* m_LightCullingPass
int m_Iterations;
int m_Quality = 0;
int m_BloomLod = 4;
GLuint m_GaussianTexture_horiz = 0;
GLuint m_GaussianTexture_vert = 0;
FrameBuffer m_GaussianFrameBuffer_horiz;
FrameBuffer m_GaussianFrameBuffer_vert;
FrameBuffer* m_GaussianFrameBuffer_horiz = nullptr;
FrameBuffer* m_GaussianFrameBuffer_vert = nullptr;
ShaderProgram* m_GaussianProgram_horiz;
ShaderProgram* m_GaussianProgram_vert;