diff options
Diffstat (limited to 'src/window.cpp')
| -rw-r--r-- | src/window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp index 3771ece..3fdc425 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -916,10 +916,10 @@ void UpdateCamera() { } if (bool(ActiveCamera->stale & PKE_CAMERA_STALE_ORIENTATION)) { if (bool(ActiveCamera->type == PKE_CAMERA_TYPE_PERSPECTIVE)) { - UBO.proj = glm::perspective(glm::radians(45.f), Extent.width / (float)Extent.height, 0.1f, 100.f); + UBO.proj = glm::perspective(glm::radians(45.f), Extent.width / (float)Extent.height, 0.1f, 1000.f); UBO.proj[1][1] *= -1; } else if (bool(ActiveCamera->type == PKE_CAMERA_TYPE_ORTHOGONAL)) { - UBO.proj = glm::ortho(0.f, (float)Extent.width, 0.f, (float)Extent.height, 0.f, 100.f); + UBO.proj = glm::ortho(0.f, (float)Extent.width, 0.f, (float)Extent.height, 0.f, 1000.f); UBO.proj[1][1] *= -1; } } |
