From fb885dc95955f7a732514afd85595b8dc2458bbe Mon Sep 17 00:00:00 2001 From: Simon <oehrl@vr.rwth-aachen.de> Date: Fri, 19 Nov 2021 10:20:00 +0100 Subject: [PATCH] Imrpove UI Use Drag* instead of Input* widgets. --- src/depth_peeling_reprojection_stereo.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/depth_peeling_reprojection_stereo.cpp b/src/depth_peeling_reprojection_stereo.cpp index 67399904..0d84c1fe 100644 --- a/src/depth_peeling_reprojection_stereo.cpp +++ b/src/depth_peeling_reprojection_stereo.cpp @@ -238,11 +238,11 @@ void depth_peeling_reprojection_stereo::update() { void depth_peeling_reprojection_stereo::draw_imgui() { if (ImGui::CollapsingHeader("Depth Peeling Reprojection", ImGuiTreeNodeFlags_DefaultOpen)) { - ImGui::InputFloat("Discard Threshold", ¶ms.discard_threshold, 0.0001, 0.001, "%.10f"); - ImGui::InputInt("Tesselation Level", ¶ms.tesselation_level, 1.0); - ImGui::InputFloat("Z-min", ¶ms.z_min, 0.00001, 0.00001, "%.10f"); - ImGui::InputFloat("Z-max", ¶ms.z_max, 0.00001, 0.00001, "%.10f"); - ImGui::InputFloat("Depth Threshold", ¶ms.zThreshold, 0.00001, 0.00001, "%.20f"); + ImGui::DragFloat("Discard Threshold", ¶ms.discard_threshold, 0.0001, 0.0, 0.1, "%.10f"); + ImGui::DragInt("Tesselation Level", ¶ms.tesselation_level, 1, 0, 64); + ImGui::DragFloat("Z-min", ¶ms.z_min, 0.00001f, 0.0f, 1.0f, "%.10f"); + ImGui::DragFloat("Z-max", ¶ms.z_max, 0.00001f, 0.0f, 1.0f, "%.10f"); + ImGui::DragFloat("Depth Threshold", ¶ms.zThreshold, 0.00001, 0.00001, 0.1, "%.20f"); bool draw_first_layer = (layers_to_draw_ & 0b01) != 0; ImGui::Checkbox("First Layer", &draw_first_layer); -- GitLab