summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-07-22 10:35:41 +0200
committerraysan5 <[email protected]>2017-07-22 10:35:49 +0200
commit00d2768bc910ca0b6749878f0d142b62d30d55c1 (patch)
treefda7d1963c0096452bacd8ba3682db8edc1ccc48 /src/raymath.h
parentbee980e90f1e27a0db8bd583ad0be57113d1298e (diff)
downloadraylib-00d2768bc910ca0b6749878f0d142b62d30d55c1.tar.gz
raylib-00d2768bc910ca0b6749878f0d142b62d30d55c1.zip
Corrected bug on MatrixPerspective()
Some other tweaks...
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h2
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);