editor: added depth of field refocus hotkey

This commit is contained in:
Turánszki János
2023-07-06 09:40:49 +02:00
parent 9d661fa5df
commit b3378751e3
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ void CameraWindow::Create(EditorComponent* _editor)
AddWidget(&fovSlider);
focalLengthSlider.Create(0.001f, 100, 1, 10000, "Focal Length: ");
focalLengthSlider.SetTooltip("Controls the depth of field effect's focus distance");
focalLengthSlider.SetTooltip("Controls the depth of field effect's focus distance.\nYou can also refocus by holding the C key and picking in the scene with the left mouse button.");
focalLengthSlider.SetSize(XMFLOAT2(wid, hei));
focalLengthSlider.SetPos(XMFLOAT2(x, y += step));
focalLengthSlider.OnSlide([&](wi::gui::EventArgs args) {