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:
parent
6e1739138d
commit
d5a906eb3f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user