Skip to content

Commit fe1159e

Browse files
USD Viewer: added HDR bloom
1 parent 9c83d42 commit fe1159e

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

Samples/USDViewer/src/USDViewer.cpp

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)