From: Mikko Rasa Date: Sun, 9 Mar 2014 13:07:16 +0000 (+0200) Subject: Correct field of view calculation for Oculus Rift X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7576cb135f0b533c302e9c6ea91bd264d7c59954;p=libs%2Fvr.git Correct field of view calculation for Oculus Rift --- diff --git a/source/oculusriftcombiner.cpp b/source/oculusriftcombiner.cpp index 3ebbcc8..67b4729 100644 --- a/source/oculusriftcombiner.cpp +++ b/source/oculusriftcombiner.cpp @@ -155,7 +155,7 @@ void OculusRiftCombiner::update_parameters() left_shdata.uniform("scale", 2.0f, 2.5f, oversize); right_shdata.uniform("scale", 2.0f, 2.5f, oversize); - fov = Geometry::atan(oversize*0.625f/view_distance)*2.0f; + fov = Geometry::atan(oversize*0.625f/view_distance/2)*2.0f; frustum_skew = lens_separation*2-1; }