Archived
1
Fork 0

Add aperture and focus distance controls to debug menu

This commit is contained in:
Joshua Goins 2022-03-30 10:16:07 -04:00
parent 8a17afca50
commit b7ae36b06c

View file

@ -260,6 +260,8 @@ int main(int argc, char* argv[]) {
if(SDL_GetWindowFlags(window) & SDL_WINDOW_INPUT_FOCUS) if(SDL_GetWindowFlags(window) & SDL_WINDOW_INPUT_FOCUS)
io.MousePos = ImVec2(static_cast<float>(mouseX), static_cast<float>(mouseY)); io.MousePos = ImVec2(static_cast<float>(mouseX), static_cast<float>(mouseY));
ImGui::DragFloat("Aperture", &cameraComponent->aperture, 0.1f);
ImGui::DragFloat("Focus Distance", &cameraComponent->focusDistance, 0.1f);
ImGui::Render(); ImGui::Render();
#endif #endif