Review rlglUnproject() system

This commit is contained in:
raysan5 2016-03-02 17:13:31 +01:00
parent 4011c13d4b
commit 4476a9e241
5 changed files with 37 additions and 66 deletions

View file

@ -803,7 +803,7 @@ RMDEF Matrix MatrixFrustum(double left, double right, double bottom, double top,
// Returns perspective projection matrix
RMDEF Matrix MatrixPerspective(double fovy, double aspect, double near, double far)
{
double top = near*tanf(fovy*PI/360.0f);
double top = near*tan(fovy*PI/360.0);
double right = top*aspect;
return MatrixFrustum(-right, right, -top, top, near, far);