Corrected bug on MatrixPerspective()
Some other tweaks...
This commit is contained in:
parent
bee980e90f
commit
00d2768bc9
4 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue