Ver código fonte

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

pull/1310/head
seanpringle 5 anos atrás
committed by GitHub
pai
commit
a9d676a5fd
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c Ver arquivo

@ -1443,7 +1443,7 @@ void BeginMode3D(Camera3D camera)
if (camera.type == CAMERA_PERSPECTIVE)
{
// 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;
rlFrustum(-right, right, -top, top, RL_CULL_DISTANCE_NEAR, RL_CULL_DISTANCE_FAR);

Carregando…
Cancelar
Salvar