camera: nearer near clipping plane
parent
e609f4858b
commit
19b3c68015
|
@ -18,7 +18,7 @@ public:
|
||||||
{
|
{
|
||||||
view = glm::mat4(1.0f);
|
view = glm::mat4(1.0f);
|
||||||
// note that we're translating the scene in the reverse direction of where we want to move
|
// 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)
|
void update(GLFWwindow *window, float deltaTime)
|
||||||
|
@ -49,7 +49,7 @@ public:
|
||||||
|
|
||||||
void viewPortCallBack(GLFWwindow *window, int width, int height)
|
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)
|
void mouseCallback(GLFWwindow *window, double xpos, double ypos)
|
||||||
|
|
Loading…
Reference in New Issue