Skip to content

Commit

Permalink
Fix perspective angle
Browse files Browse the repository at this point in the history
  • Loading branch information
tansly committed Jan 9, 2020
1 parent ef9722e commit b284112
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions assignments/hw3/src/flat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions assignments/hw3/src/sphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion assignments/hw3/src/templates/__base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b284112

Please sign in to comment.