From acd60fff1e7374c819cb8c4eb6a6143b990dd40b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 21 Sep 2013 20:08:45 +0300 Subject: [PATCH] Copy fov and aspect from base camera --- source/oculusriftcamera.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.45.2