diff options
| author | raysan5 <raysan5@gmail.com> | 2017-07-22 10:35:41 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2017-07-22 10:35:49 +0200 |
| commit | 00d2768bc910ca0b6749878f0d142b62d30d55c1 (patch) | |
| tree | fda7d1963c0096452bacd8ba3682db8edc1ccc48 /src/core.c | |
| parent | bee980e90f1e27a0db8bd583ad0be57113d1298e (diff) | |
| download | raylib-00d2768bc910ca0b6749878f0d142b62d30d55c1.tar.gz raylib-00d2768bc910ca0b6749878f0d142b62d30d55c1.zip | |
Corrected bug on MatrixPerspective()
Some other tweaks...
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 2 |
1 files changed, 1 insertions, 1 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 |
