From: Mikko Rasa Date: Sat, 21 Sep 2013 17:08:45 +0000 (+0300) Subject: Copy fov and aspect from base camera X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=acd60fff1e7374c819cb8c4eb6a6143b990dd40b;p=libs%2Fvr.git Copy fov and aspect from base camera --- diff --git a/source/oculusriftcamera.cpp b/source/oculusriftcamera.cpp index 9b85d12..2a8af2b 100644 --- a/source/oculusriftcamera.cpp +++ b/source/oculusriftcamera.cpp @@ -34,6 +34,8 @@ void OculusRiftCamera::update() set_up_direction(base_right*m[1]+base_up*m[5]-base_look*m[9]); set_look_direction(-base_right*m[2]-base_up*m[6]+base_look*m[10]); set_depth_clip(base_camera.get_near_clip(), base_camera.get_far_clip()); + set_field_of_view(base_camera.get_field_of_view()); + set_aspect(base_camera.get_aspect()); } } // namespace VR