1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00

Increase FOV while cinematic mode is set

This commit is contained in:
Daniel Evans 2015-01-27 13:59:09 +00:00
parent 6e1739138d
commit d5a906eb3f

View File

@ -225,6 +225,12 @@ void RWGame::render(float alpha)
}
viewCam.frustum.aspectRatio = window.getSize().x / (float) window.getSize().y;
if ( engine->state.isCinematic )
{
float cinematicAspect = 19.f/10.f;
viewCam.frustum.fov *= cinematicAspect / viewCam.frustum.aspectRatio;
}
glEnable(GL_DEPTH_TEST);
glClear(GL_DEPTH_BUFFER_BIT|GL_COLOR_BUFFER_BIT);