From b2841122b7c9378b6a5dd5ac4721d7f59da35065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9Fmur=20Oymak?= Date: Thu, 9 Jan 2020 22:16:55 +0300 Subject: [PATCH] Fix perspective angle --- assignments/hw3/src/flat.cpp | 3 +-- assignments/hw3/src/sphere.cpp | 3 +-- assignments/hw3/src/templates/__base.cpp | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/assignments/hw3/src/flat.cpp b/assignments/hw3/src/flat.cpp index 35b3a96..b840046 100644 --- a/assignments/hw3/src/flat.cpp +++ b/assignments/hw3/src/flat.cpp @@ -161,8 +161,7 @@ struct UIState { struct { glm::mat4 Model{1.0f}; glm::mat4 View; - glm::mat4 Projection = - glm::perspective(glm::radians(45.0f), 1.0f, 0.1f, 1000.0f); + glm::mat4 Projection = glm::perspective(45.0f, 1.0f, 0.1f, 1000.0f); glm::mat4 Composite; } Matrices; diff --git a/assignments/hw3/src/sphere.cpp b/assignments/hw3/src/sphere.cpp index 1052a3a..0386b83 100644 --- a/assignments/hw3/src/sphere.cpp +++ b/assignments/hw3/src/sphere.cpp @@ -161,8 +161,7 @@ struct UIState { struct { glm::mat4 Model{1.0f}; glm::mat4 View; - glm::mat4 Projection = - glm::perspective(glm::radians(45.0f), 1.0f, 0.1f, 1000.0f); + glm::mat4 Projection = glm::perspective(45.0f, 1.0f, 0.1f, 1000.0f); glm::mat4 Composite; } Matrices; diff --git a/assignments/hw3/src/templates/__base.cpp b/assignments/hw3/src/templates/__base.cpp index 158ce68..a07f59f 100644 --- a/assignments/hw3/src/templates/__base.cpp +++ b/assignments/hw3/src/templates/__base.cpp @@ -162,7 +162,7 @@ struct UIState { glm::mat4 Model{1.0f}; glm::mat4 View; glm::mat4 Projection = - glm::perspective(glm::radians(45.0f), 1.0f, 0.1f, 1000.0f); + glm::perspective(45.0f, 1.0f, 0.1f, 1000.0f); glm::mat4 Composite; } Matrices;