mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 18:11:01 -05:00
committed by
Alexander Bock
parent
04846e3adf
commit
43e115d651
@@ -153,6 +153,19 @@ void GuiSpaceTimeComponent::render() {
|
||||
);
|
||||
}
|
||||
|
||||
float interpolationTime = global::navigationHandler.interpolationTime();
|
||||
const bool interpolationTimeChanged = ImGui::SliderFloat(
|
||||
"Interpolation Time",
|
||||
&interpolationTime,
|
||||
0.f,
|
||||
10.f,
|
||||
"%.1f seconds"
|
||||
);
|
||||
|
||||
if (interpolationTimeChanged) {
|
||||
global::navigationHandler.setInterpolationTime(interpolationTime);
|
||||
}
|
||||
|
||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 20.f);
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
Reference in New Issue
Block a user