diff options
| author | raysan5 <[email protected]> | 2017-07-22 10:35:41 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-07-22 10:35:49 +0200 |
| commit | 00d2768bc910ca0b6749878f0d142b62d30d55c1 (patch) | |
| tree | fda7d1963c0096452bacd8ba3682db8edc1ccc48 /src/raymath.h | |
| parent | bee980e90f1e27a0db8bd583ad0be57113d1298e (diff) | |
| download | raylib-00d2768bc910ca0b6749878f0d142b62d30d55c1.tar.gz raylib-00d2768bc910ca0b6749878f0d142b62d30d55c1.zip | |
Corrected bug on MatrixPerspective()
Some other tweaks...
Diffstat (limited to 'src/raymath.h')
| -rw-r--r-- | src/raymath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raymath.h b/src/raymath.h index 270441a5..93ae90ae 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -882,7 +882,7 @@ RMDEF Matrix MatrixFrustum(double left, double right, double bottom, double top, // NOTE: Angle should be provided in radians RMDEF Matrix MatrixPerspective(double fovy, double aspect, double near, double far) { - double top = near*tan(fovy); + double top = near*tan(fovy*0.5); double right = top*aspect; return MatrixFrustum(-right, right, -top, top, near, far); |
