Started on deferred rendering framework.

This commit is contained in:
Tleety
2014-04-24 00:11:16 +02:00
parent f9a7425249
commit 6d75336496
13 changed files with 289 additions and 150 deletions
+10
View File
@@ -88,9 +88,16 @@ private:
GLuint m_ShadowFrameBuffer;
GLuint m_ShadowDepthTexture;
GLuint m_fb_PositionTexture;
GLuint m_fb_NormalsTexture;
GLuint m_fb;
GLuint m_rb;
GLenum draw_bufs[2];
std::shared_ptr<Camera> m_Camera;
ShaderProgram m_ShaderProgram;
ShaderProgram m_FirstPassProgram;
ShaderProgram m_ShaderProgramNormals;
ShaderProgram m_ShaderProgramShadows;
ShaderProgram m_ShaderProgramShadowsDrawDepth;
@@ -102,6 +109,9 @@ private:
void DrawModels(ShaderProgram &shader);
void DrawShadowMap();
void CreateShadowMap(int resolution);
void FrameBufferTextures();
void DrawFBO();
GLuint CreateQuad();
void DrawDebugShadowMap();
GLuint CreateAABB();