Skip to content

Commit 41c345f

Browse files
USD Viewer: added reflections toggle
1 parent 5f2f31f commit 41c345f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Samples/USDViewer/src/USDViewer.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,15 @@ void USDViewer::UpdateUI()
630630
if (ImGui::SliderFloat("Selection outline width", &m_PostProcessParams.SelectionOutlineWidth, 1.f, 16.f))
631631
UpdatePostProcessParams = true;
632632

633+
{
634+
bool EnableSSR = m_PostProcessParams.SSRScale != 0;
635+
if (ImGui::Checkbox("Reflections", &EnableSSR))
636+
{
637+
m_PostProcessParams.SSRScale = EnableSSR ? 1.f : 0.f;
638+
UpdatePostProcessParams = true;
639+
}
640+
}
641+
633642
ImGui::TreePop();
634643
}
635644

0 commit comments

Comments
 (0)