]> git.tdb.fi Git - libs/vr.git/commitdiff
Copy fov and aspect from base camera
authorMikko Rasa <tdb@tdb.fi>
Sat, 21 Sep 2013 17:08:45 +0000 (20:08 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 21 Sep 2013 17:08:45 +0000 (20:08 +0300)
source/oculusriftcamera.cpp

index 9b85d12e8f474e32d5bb4372d271e0263e785fa0..2a8af2b020c345a0e8b4f9b172edfc13a457c4b6 100644 (file)
@@ -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