Skip to content

Commit 45f2cc8

Browse files
committed
fix issue: Camera exercise 2 comment nitpick JoeyDeVries#382, corrected minor typo in comment.
1 parent f2dc2e1 commit 45f2cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/1.getting_started/7.6.camera_exercise2/camera_exercise2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ glm::mat4 calculate_lookAt_matrix(glm::vec3 position, glm::vec3 target, glm::vec
1212
// Create translation and rotation matrix
1313
// In glm we access elements as mat[col][row] due to column-major layout
1414
glm::mat4 translation = glm::mat4(1.0f); // Identity matrix by default
15-
translation[3][0] = -position.x; // Third column, first row
15+
translation[3][0] = -position.x; // Fourth column, first row
1616
translation[3][1] = -position.y;
1717
translation[3][2] = -position.z;
1818
glm::mat4 rotation = glm::mat4(1.0f);

0 commit comments

Comments
 (0)