Fixed bug #161, perspectiveFov was written with a left handed coord system.

master
Christophe Riccio ago%!(EXTRA string=14 years)
parent 040ea3ce7e
commit aebcd7ec3f
  1. 4
      glm/gtc/matrix_transform.inl

@ -261,8 +261,8 @@ namespace glm
Result[0][0] = w;
Result[1][1] = h;
Result[2][2] = (zFar + zNear) / (zFar - zNear);
Result[2][3] = valType(1);
Result[3][2] = -(valType(2) * zFar * zNear) / (zFar - zNear);
Result[2][3] = -valType(1);
Result[3][2] = (valType(2) * zFar * zNear) / (zFar - zNear);
return Result;
}

Loading…
Cancel
Save