Corrected bug on MatrixPerspective()

Some other tweaks...
This commit is contained in:
raysan5
2017-07-22 10:35:41 +02:00
parent bee980e90f
commit 00d2768bc9
4 changed files with 7 additions and 7 deletions

View File

@@ -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);