From: Patrick Schönberger Date: Tue, 2 Feb 2021 20:15:31 +0000 (+0100) Subject: ui changes X-Git-Url: https://gitweb.ps.run/subsurface_scattering/commitdiff_plain/7afef4c11451100fa379bba1fe78122428d8d663?ds=sidebyside ui changes --- diff --git a/src/main.cpp b/src/main.cpp index 1440f04..c05d25e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -389,7 +389,7 @@ int main() { ImGui::Begin("Options"); ImGui::Checkbox("Wireframe", &options.wireframe); - ImGui::Checkbox("Free Cam (F)", &options.freecam); + ImGui::Checkbox("Free Cam", &options.freecam); if (options.freecam) { ImGui::LabelText("Position", "%f %f %f", freeCam.pos.x, freeCam.pos.y, freeCam.pos.z); ImGui::LabelText("Rotation", "%f %f", freeCam.rot.x, freeCam.rot.y); @@ -399,7 +399,7 @@ int main() { } } else { ImGui::LabelText("Rotation", "%f %f", arcCam.rot.x, arcCam.rot.y); - ImGui::InputFloat("Radius", &arcCam.radius); + ImGui::DragFloat("Radius", &arcCam.radius, 0.01f, -1.0f, 1.0f); if (ImGui::Button("Reset")) { arcCam.rot = glm::vec2(0); arcCam.radius = 1;