editor: limit far plane slider min #432

This commit is contained in:
Turánszki János
2022-05-07 09:55:59 +02:00
parent e11de6cad4
commit 3f4e9a7294
+1 -1
View File
@@ -41,7 +41,7 @@ void CameraWindow::Create(EditorComponent* editor)
float hei = 18;
float step = hei + 2;
farPlaneSlider.Create(0.1f, 10000, 5000, 100000, "Far Plane: ");
farPlaneSlider.Create(100, 10000, 5000, 100000, "Far Plane: ");
farPlaneSlider.SetTooltip("Controls the camera's far clip plane, geometry farther than this will be clipped.");
farPlaneSlider.SetSize(XMFLOAT2(100, hei));
farPlaneSlider.SetPos(XMFLOAT2(x, y += step));