Mesh cleanup.

This commit is contained in:
a.pilote
2022-06-27 20:12:56 -04:00
parent a8abef1ab2
commit 6b827e9db7
22 changed files with 220 additions and 158 deletions
+3 -4
View File
@@ -76,7 +76,6 @@ namespace Nuake {
mVolumetric->SetDepth(mGBuffer->GetTexture(GL_DEPTH_ATTACHMENT).get());
mVolumetric->Draw(mProjection , mView, lightList);
finalOutput = mVolumetric->GetFinalOutput();
}
@@ -95,8 +94,8 @@ namespace Nuake {
}
mToneMapBuffer->Unbind();
mSSR->Resize(framebuffer.GetSize());
mSSR->Draw(mGBuffer.get(), framebuffer.GetTexture(), mView, mProjection, scene.GetCurrentCamera());
//mSSR->Resize(framebuffer.GetSize());
//mSSR->Draw(mGBuffer.get(), framebuffer.GetTexture(), mView, mProjection, scene.GetCurrentCamera());
framebuffer.Bind();
{
@@ -105,7 +104,7 @@ namespace Nuake {
shader->Bind();
shader->SetUniformTex("u_Source", mToneMapBuffer->GetTexture().get(), 0);
shader->SetUniformTex("u_Source2", mSSR->OutputFramebuffer->GetTexture().get(), 1);
shader->SetUniformTex("u_Source2", mToneMapBuffer->GetTexture().get(), 1);
Renderer::DrawQuad();
}
framebuffer.Unbind();