shadow wip

This commit is contained in:
Ayumiwii
2016-02-05 15:31:20 +01:00
parent c912cd7a42
commit 0e51ae7dc9
3 changed files with 2 additions and 4 deletions
+1 -1
Submodule assets updated: c4898d8281...091ad5c01b
-2
View File
@@ -62,8 +62,6 @@ void ShadowPass::ClearBuffer()
void ShadowPass::Draw(RenderScene & scene)
{
ShadowPassState* state = new ShadowPassState(m_DepthBuffer.GetHandle());
glDrawBuffer(GL_NONE);
glReadBuffer(GL_NONE);
GLuint shaderHandle = m_ShadowProgram->GetHandle();
m_ShadowProgram->Bind();
+1 -1
View File
@@ -12,7 +12,7 @@ layout(location = 0 ) out float ShadowMap;
void main()
{
//ShadowMap = vec4(vec3(gl_FragCoord.z), 1.0);
//ShadowMap = gl_FragCoord.z;
ShadowMap = (glgl_FragCoord.x, glgl_FragCoord.y, glgl_FragCoord.z);
}