SSAO is working, but is kinda crappy. You can change shade variables in the debug window.

This commit is contained in:
Teejoon
2016-02-19 16:50:04 +01:00
parent 0d665c10fe
commit 201480b17f
16 changed files with 444 additions and 38 deletions
+4
View File
@@ -21,6 +21,9 @@ public:
void Draw(RenderScene& scene);
void ClearBuffer();
//Return the texture that is used in later stages to apply the bloom effect
GLuint DepthBuffer() const { return m_DepthBuffer; }
Camera* DepthBufferCamera() const { return RenderCamera; }
//Return the texture that is used in later stages to apply the bloom effect
GLuint BloomTexture() const { return m_BloomTexture; }
GLuint BloomTextureLowRes() const { return m_BloomTextureLowRes; }
@@ -62,6 +65,7 @@ private:
GLuint m_SceneTextureLowRes;
GLuint m_DepthBuffer;
GLuint m_DepthBufferLowRes;
Camera* RenderCamera;
//maqke this component based i guess?
GLuint m_ShieldPixelRate = 16;