Add aperture and focus distance controls to debug menu
This commit is contained in:
parent
8a17afca50
commit
b7ae36b06c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue