Added FOV Interpolation
This commit is contained in:
parent
a0cd1ba04a
commit
0d4d5587b5
13 changed files with 54 additions and 5 deletions
|
|
@ -899,11 +899,8 @@ void D_Display ()
|
|||
DAngle fov = DAngle::fromDeg(90.);
|
||||
AActor *cam = players[consoleplayer].camera;
|
||||
if (cam)
|
||||
{
|
||||
if (cam->player)
|
||||
fov = DAngle::fromDeg(cam->player->FOV);
|
||||
else fov = DAngle::fromDeg(cam->CameraFOV);
|
||||
}
|
||||
fov = DAngle::fromDeg(cam->GetFOV(I_GetTimeFrac()));
|
||||
|
||||
R_SetFOV(vp, fov);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue