Skip to content
Snippets Groups Projects
Commit e98e1487 authored by Jonathan Kunstwald's avatar Jonathan Kunstwald
Browse files

Add TAA rejection option to pipeline sample

parent f1e02c49
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,23 @@ void RenderingPipelineSample::onGui()
ImGui::Checkbox("Light coverage heatmap", &mDebugShowClusterHeatmap);
ImGui::Checkbox("Cluster debug colors", &mDebugShowClusterCoords);
if (ImGui::Button("Redraw shadows"))
static bool rejectionEnabled = getPipelineCamera()->isRejectingHistory();
ImGui::Checkbox("Reject TAA History", &rejectionEnabled);
getPipelineCamera()->setRejectHistory(rejectionEnabled);
// if (ImGui::Button("Redraw shadows"))
// {
// getPipelineScene()->shadowMode = ShadowMode::UpdateOnce;
// }
if (ImGui::Button("Reallocate targets"))
{
getPipeline()->freeAllTargets();
}
if (ImGui::Button("Reset Camera"))
{
getPipelineScene()->shadowMode = ShadowMode::UpdateOnce;
getCamera()->setLookAt(glm::vec3(sampleMaxX - 4, 5, sampleMaxZ + 10), glm::vec3(sampleMaxX / 2, -3, sampleMaxZ / 2));
}
ImGui::End();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment