Shadow WIP stage 2

-  Soft shadow
This commit is contained in:
Ayumiwii
2016-02-09 16:15:11 +01:00
parent 847c539373
commit ecd823cb9f
3 changed files with 34 additions and 9 deletions
+6 -2
View File
@@ -32,8 +32,8 @@ public:
glm::mat4 lightSpaceMatrix() const { return m_LightSpaceMatrix; }
glm::mat4 lightP() const { return m_LightProjection; }
glm::mat4 lightV() const { return m_LightView; }
//glm::mat4 lightV() const { return m_LightProjection; } //swapped m_P -> m_V
//glm::mat4 lightP() const { return m_LightView; } // swapped m_V -> m_P
void setResolution(GLuint width, GLuint height) { resolutionSizeWidth = width; resolutionSizeHeigth = height; }
private:
@@ -57,6 +57,10 @@ private:
glm::mat4 m_LightProjection;
glm::mat4 m_LightView;
glm::mat4 m_LightSpaceMatrix;
GLuint resolutionSizeWidth = 2048;
GLuint resolutionSizeHeigth = 2048;
};
#endif