From 7576cb135f0b533c302e9c6ea91bd264d7c59954 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 9 Mar 2014 15:07:16 +0200 Subject: [PATCH] Correct field of view calculation for Oculus Rift --- source/oculusriftcombiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2