From 19b3c68015279764047779be8547d8718436ad35 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Thu, 23 Mar 2023 14:26:12 +0100 Subject: [PATCH] camera: nearer near clipping plane --- include/camera.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/camera.hpp b/include/camera.hpp index 93eea63..ed788a0 100644 --- a/include/camera.hpp +++ b/include/camera.hpp @@ -18,7 +18,7 @@ public: { view = glm::mat4(1.0f); // note that we're translating the scene in the reverse direction of where we want to move - projection = glm::perspective(glm::radians(90.0f), 800.0f / 600.0f, 1.0f, 200.0f); + projection = glm::perspective(glm::radians(90.0f), 800.0f / 600.0f, 0.1f, 200.0f); } void update(GLFWwindow *window, float deltaTime) @@ -49,7 +49,7 @@ public: void viewPortCallBack(GLFWwindow *window, int width, int height) { - projection = glm::perspective(glm::radians(80.0f), (float)width / (float)height, 1.0f, 350.0f); + projection = glm::perspective(glm::radians(80.0f), (float)width / (float)height, 0.1f, 350.0f); } void mouseCallback(GLFWwindow *window, double xpos, double ypos)