Skip to content
Snippets Groups Projects
Commit 5c163e52 authored by Abdulhadi Al-Sayed's avatar Abdulhadi Al-Sayed
Browse files

Increased perspective camera render distance

parent 098ba858
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ namespace engine {
Constructs glm orthographic projection and inserts custom position parameters
*/
PerspectiveCamera::PerspectiveCamera(float aspectRatio, float fov) :
m_ProjectionMatrix(glm::perspective(fov, aspectRatio, 0.1f, 100.0f)),
m_ProjectionMatrix(glm::perspective(fov, aspectRatio, 0.1f, 10000.0f)),
m_ViewMatrix(1.0f) {
m_ViewProjectionMatrix = m_ProjectionMatrix * m_ViewMatrix;
}
......@@ -15,7 +15,7 @@ namespace engine {
Sets the camera view projection matrix based on parameters and current view matrix
*/
void PerspectiveCamera::setProjection(float aspectRatio, float fov) {
m_ProjectionMatrix = glm::perspective(fov, aspectRatio, 0.1f, 100.0f);
m_ProjectionMatrix = glm::perspective(fov, aspectRatio, 0.1f, 10000.0f);
m_ViewProjectionMatrix = m_ProjectionMatrix * m_ViewMatrix;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment