Skip to content

Commit

Permalink
-Fix: Buf in forward renderer fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AEspinosaDev committed Dec 18, 2024
1 parent caaf49f commit 23df440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/renderer-app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void Application::init(Systems::RendererSettings settings) {
std::placeholders::_3,
std::placeholders::_4));

m_renderer = new Systems::DeferredRenderer(m_window, ShadowResolution::MEDIUM, settings);
m_renderer = new Systems::ForwardRenderer(m_window, ShadowResolution::MEDIUM, settings);

setup();

Expand Down
4 changes: 3 additions & 1 deletion src/systems/renderers/forward.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ void ForwardRenderer::on_before_render(Core::Scene* const scene) {
}

m_passes[FORWARD_PASS]->set_attachment_clear_value(
{m_settings.clearColor.r, m_settings.clearColor.g, m_settings.clearColor.b, m_settings.clearColor.a});
{m_settings.clearColor.r, m_settings.clearColor.g, m_settings.clearColor.b, m_settings.clearColor.a}, 0);
m_passes[FORWARD_PASS]->set_attachment_clear_value(
{m_settings.clearColor.r, m_settings.clearColor.g, m_settings.clearColor.b, m_settings.clearColor.a}, 1);
}

void ForwardRenderer::on_after_render(RenderResult& renderResult, Core::Scene* const scene) {
Expand Down

0 comments on commit 23df440

Please sign in to comment.