Skip to content

Commit

Permalink
Merge pull request #387 from SuperAoao/Branch_master_#382
Browse files Browse the repository at this point in the history
fix issue: Camera exercise 2 comment nitpick #382
  • Loading branch information
JoeyDeVries authored Apr 11, 2024
2 parents f2dc2e1 + 45f2cc8 commit 2eb1fcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ glm::mat4 calculate_lookAt_matrix(glm::vec3 position, glm::vec3 target, glm::vec
// Create translation and rotation matrix
// In glm we access elements as mat[col][row] due to column-major layout
glm::mat4 translation = glm::mat4(1.0f); // Identity matrix by default
translation[3][0] = -position.x; // Third column, first row
translation[3][0] = -position.x; // Fourth column, first row
translation[3][1] = -position.y;
translation[3][2] = -position.z;
glm::mat4 rotation = glm::mat4(1.0f);
Expand Down

0 comments on commit 2eb1fcb

Please sign in to comment.