mirror of
https://github.com/g-truc/glm.git
synced 2024-11-12 21:31:47 +00:00
Fix a bug in glm::perspective() where a degrees-to-radians conversion is being performed twice.
This commit is contained in:
parent
a4aa39f9bd
commit
e6b8f7a40e
@ -242,7 +242,7 @@ namespace glm
|
|||||||
valType const rad = glm::radians(fovy);
|
valType const rad = glm::radians(fovy);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
valType range = tan(radians(rad / valType(2))) * zNear;
|
valType range = tan(rad / valType(2)) * zNear;
|
||||||
valType left = -range * aspect;
|
valType left = -range * aspect;
|
||||||
valType right = range * aspect;
|
valType right = range * aspect;
|
||||||
valType bottom = -range;
|
valType bottom = -range;
|
||||||
|
Loading…
Reference in New Issue
Block a user