From b7ae36b06c529ddb93ce848929c5f69d0c4a08ff Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 30 Mar 2022 10:16:07 -0400 Subject: [PATCH] Add aperture and focus distance controls to debug menu --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b35b37d..9665f50 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -260,6 +260,8 @@ int main(int argc, char* argv[]) { if(SDL_GetWindowFlags(window) & SDL_WINDOW_INPUT_FOCUS) io.MousePos = ImVec2(static_cast(mouseX), static_cast(mouseY)); + ImGui::DragFloat("Aperture", &cameraComponent->aperture, 0.1f); + ImGui::DragFloat("Focus Distance", &cameraComponent->focusDistance, 0.1f); ImGui::Render(); #endif