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
|
@ -885,7 +885,7 @@ void Begin3dMode(Camera camera)
|
|||
|
||||
// Setup perspective projection
|
||||
float aspect = (float)screenWidth/(float)screenHeight;
|
||||
double top = 0.01*tan(camera.fovy*PI/360.0);
|
||||
double top = 0.01*tan(camera.fovy*0.5*DEG2RAD);
|
||||
double right = top*aspect;
|
||||
|
||||
// NOTE: zNear and zFar values are important when computing depth buffer values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue