diff --git a/src/depth_peeling_reprojection_stereo.cpp b/src/depth_peeling_reprojection_stereo.cpp index 673999047e5a0830c0fd81da99dabe498960a847..0d84c1fe459be829a0822b298cf9535322227165 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);