diff options
| author | Patrick Schönberger | 2021-02-02 21:15:31 +0100 |
|---|---|---|
| committer | Patrick Schönberger | 2021-02-02 21:15:31 +0100 |
| commit | 7afef4c11451100fa379bba1fe78122428d8d663 (patch) | |
| tree | 29be634aa5c54a0d272a554843d7bb638f1a95a0 /src | |
| parent | 8107e994b24112c5bce75a8ae57d0680e5f9161a (diff) | |
| download | subsurface_scattering-7afef4c11451100fa379bba1fe78122428d8d663.tar.gz subsurface_scattering-7afef4c11451100fa379bba1fe78122428d8d663.zip | |
ui changes
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
|
