summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 91ce0ca3..8e1e44cf 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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);