diff options
| author | seanpringle <[email protected]> | 2020-07-14 18:36:22 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-14 10:36:22 +0200 |
| commit | a9d676a5fdcad871cd89d32e122821efd78c83ab (patch) | |
| tree | 9e28b88bc916e3667d97a42f21831fcebe9c9fad /src/core.c | |
| parent | bf429a005805951e8c8bc3c23ae51f2e1ede1805 (diff) | |
| download | raylib-a9d676a5fdcad871cd89d32e122821efd78c83ab.tar.gz raylib-a9d676a5fdcad871cd89d32e122821efd78c83ab.zip | |
scale perspective top calc for near culing plane (#1309)
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1443,7 +1443,7 @@ void BeginMode3D(Camera3D camera) if (camera.type == CAMERA_PERSPECTIVE) { // Setup perspective projection - double top = 0.01*tan(camera.fovy*0.5*DEG2RAD); + double top = RL_CULL_DISTANCE_NEAR*tan(camera.fovy*0.5*DEG2RAD); double right = top*aspect; rlFrustum(-right, right, -top, top, RL_CULL_DISTANCE_NEAR, RL_CULL_DISTANCE_FAR); |
