add post-processing option to gltf-viewer

This commit is contained in:
Mathias Agopian
2021-06-15 10:46:18 -07:00
committed by Mathias Agopian
parent e7ed85ec94
commit d0664bc119

View File

@@ -600,9 +600,14 @@ void SimpleViewer::updateUserInterface() {
if (ImGui::CollapsingHeader("View")) {
ImGui::Indent();
bool dither = mSettings.view.dithering == Dithering::TEMPORAL;
ImGui::Checkbox("Dithering", &dither);
enableDithering(dither);
ImGui::Checkbox("Post-processing", &mSettings.view.postProcessingEnabled);
ImGui::Indent();
bool dither = mSettings.view.dithering == Dithering::TEMPORAL;
ImGui::Checkbox("Dithering", &dither);
enableDithering(dither);
ImGui::Checkbox("Bloom", &mSettings.view.bloom.enabled);
ImGui::Checkbox("Flare", &mSettings.view.bloom.lensFlare);
ImGui::Unindent();
bool msaa = mSettings.view.sampleCount != 1;
ImGui::Checkbox("MSAA 4x", &msaa);
@@ -621,8 +626,6 @@ void SimpleViewer::updateUserInterface() {
enableFxaa(fxaa);
ImGui::Checkbox("SSAO", &mSettings.view.ssao.enabled);
ImGui::Checkbox("Bloom", &mSettings.view.bloom.enabled);
ImGui::Checkbox("Flare", &mSettings.view.bloom.lensFlare);
if (ImGui::CollapsingHeader("SSAO Options")) {
auto& ssao = mSettings.view.ssao;