Commit 5e904faa authored by Philip Trettner's avatar Philip Trettner
Browse files

Merge branch 'feature/expand-pipeline-sample' into 'master'

Add ImGui options to pipeline sample

See merge request Glow/glow-samples!4
parents f1e02c49 e98e1487
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment