Add drag sliders for camera position and target
This commit is contained in:
parent
7bdda6d1fa
commit
db3096a9f5
1 changed files with 2 additions and 0 deletions
|
@ -361,6 +361,8 @@ int main(int argc, char* argv[]) {
|
|||
if(SDL_GetWindowFlags(window) & SDL_WINDOW_INPUT_FOCUS)
|
||||
io.MousePos = ImVec2(static_cast<float>(mouseX), static_cast<float>(mouseY));
|
||||
|
||||
ImGui::DragFloat3("Position", &camera.position[0], 0.1f);
|
||||
ImGui::DragFloat3("Target", &camera.target[0], 0.1f);
|
||||
ImGui::DragFloat("Aperture", &camera.aperture, 0.01f, 0.0f, 1.0f);
|
||||
ImGui::DragFloat("Focus Distance", &camera.focusDistance);
|
||||
ImGui::Text("dpack[2] = %f", (100 - camera.focusDistance) / 100.0f);
|
||||
|
|
Reference in a new issue