]> gitweb.ps.run Git - subsurface_scattering/commitdiff
ui changes
authorPatrick Schönberger <patrick.schoenberger@posteo.de>
Tue, 2 Feb 2021 20:15:31 +0000 (21:15 +0100)
committerPatrick Schönberger <patrick.schoenberger@posteo.de>
Tue, 2 Feb 2021 20:15:31 +0000 (21:15 +0100)
src/main.cpp

index 1440f04b543b9cfb813f95a39b07034b14a97d1b..c05d25eccf40e4e12d659c1e2b427e74a8adb381 100644 (file)
@@ -389,7 +389,7 @@ int main() {
 \r
     ImGui::Begin("Options");\r
     ImGui::Checkbox("Wireframe", &options.wireframe);\r
-    ImGui::Checkbox("Free Cam (F)", &options.freecam);\r
+    ImGui::Checkbox("Free Cam", &options.freecam);\r
     if (options.freecam) {\r
       ImGui::LabelText("Position", "%f %f %f", freeCam.pos.x, freeCam.pos.y, freeCam.pos.z);\r
       ImGui::LabelText("Rotation", "%f %f", freeCam.rot.x, freeCam.rot.y);\r
@@ -399,7 +399,7 @@ int main() {
       }\r
     } else {\r
       ImGui::LabelText("Rotation", "%f %f", arcCam.rot.x, arcCam.rot.y);\r
-      ImGui::InputFloat("Radius", &arcCam.radius);\r
+      ImGui::DragFloat("Radius", &arcCam.radius, 0.01f, -1.0f, 1.0f);\r
       if (ImGui::Button("Reset")) {\r
         arcCam.rot = glm::vec2(0);\r
         arcCam.radius = 1;\r