File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -790,7 +790,12 @@ void USDViewer::UpdateUI()
790790 }
791791 }
792792
793- if (ImGui::Checkbox (" Enable TAA" , &m_PostProcessParams.EnableTAA ))
793+ if (ImGui::Checkbox (" TAA" , &m_PostProcessParams.EnableTAA ))
794+ {
795+ UpdatePostProcessParams = true ;
796+ }
797+
798+ if (ImGui::Checkbox (" Bloom" , &m_PostProcessParams.EnableBloom ))
794799 {
795800 UpdatePostProcessParams = true ;
796801 }
@@ -857,6 +862,24 @@ void USDViewer::UpdateUI()
857862 }
858863 }
859864
865+ {
866+ ImGui::ScopedDisabler Disabler{!m_PostProcessParams.EnableBloom };
867+ if (ImGui::TreeNode (" Bloom" ))
868+ {
869+ if (Bloom::UpdateUI (m_PostProcessParams.Bloom , m_PostProcessParams.BloomFeatureFlags ))
870+ UpdatePostProcessParams = true ;
871+
872+ ImGui::Spacing ();
873+ if (ImGui::Button (" Reset" ))
874+ {
875+ m_PostProcessParams.Bloom = USD::HnPostProcessTaskParams{}.Bloom ;
876+ UpdatePostProcessParams = true ;
877+ }
878+
879+ ImGui::TreePop ();
880+ }
881+ }
882+
860883 if (ImGui::TreeNode (" Tone mapping" ))
861884 {
862885 {
You can’t perform that action at this time.
0 commit comments