浏览代码

scale perspective top calc for near culing plane (#1309)

pull/1310/head
seanpringle 5 年前
committed by GitHub
父节点
当前提交
a9d676a5fd
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c 查看文件

@ -1443,7 +1443,7 @@ void BeginMode3D(Camera3D camera)
if (camera.type == CAMERA_PERSPECTIVE) if (camera.type == CAMERA_PERSPECTIVE)
{ {
// Setup perspective projection // Setup perspective projection
double top = mf">0.01*tan(camera.fovy*0.5*DEG2RAD);
double top = n">RL_CULL_DISTANCE_NEAR*tan(camera.fovy*0.5*DEG2RAD);
double right = top*aspect; double right = top*aspect;
rlFrustum(-right, right, -top, top, RL_CULL_DISTANCE_NEAR, RL_CULL_DISTANCE_FAR); rlFrustum(-right, right, -top, top, RL_CULL_DISTANCE_NEAR, RL_CULL_DISTANCE_FAR);

正在加载...
取消
保存