DrawScreenQuad implemented and working.
Started work on HDR coloring.
This commit is contained in:
Tleety
2016-01-20 13:34:56 +01:00
parent 5d6d0f82b9
commit 78a1037983
14 changed files with 269 additions and 50 deletions
-5
View File
@@ -46,15 +46,12 @@ void PickingPass::InitializeShaderPrograms()
void PickingPass::Draw(RenderScene& scene)
{
PickingPassState* state = new PickingPassState(m_PickingBuffer.GetHandle());
//TODO: Render: Add code for more jobs than modeljobs.
GLuint ShaderHandle = m_PickingProgram->GetHandle();
m_PickingProgram->Bind();
m_Camera = scene.Camera;
for (auto &job : scene.ForwardJobs) {
@@ -95,11 +92,9 @@ void PickingPass::Draw(RenderScene& scene)
}
}
m_PickingBuffer.Unbind();
GLERROR("PickingPass Error");
delete state;
}