mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 10:14:35 +00:00
Merge pull request #42 from mackron/perspective-fix
Fix a bug in glm::perspective(). Pull request #42
This commit is contained in:
commit
4286b02686
@ -242,7 +242,7 @@ namespace glm
|
||||
valType const rad = glm::radians(fovy);
|
||||
#endif
|
||||
|
||||
valType range = tan(radians(rad / valType(2))) * zNear;
|
||||
valType range = tan(rad / valType(2)) * zNear;
|
||||
valType left = -range * aspect;
|
||||
valType right = range * aspect;
|
||||
valType bottom = -range;
|
||||
|
Loading…
Reference in New Issue
Block a user