From 97c7ca0daa28db26f1c27f35678cfe8b58d68bca Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 23 Dec 2014 18:31:10 +0200 Subject: [PATCH] Fix frustum skew calculation This error wasn't apparent on the Rift DK2 and its almost-symmetric field of view. --- source/oculusriftcombiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/oculusriftcombiner.cpp b/source/oculusriftcombiner.cpp index a9808de..86d32b0 100644 --- a/source/oculusriftcombiner.cpp +++ b/source/oculusriftcombiner.cpp @@ -92,7 +92,7 @@ OculusRiftCombiner::OculusRiftCombiner(const OculusRiftDevice &d): float inner = max(left_fov.RightTan, right_fov.LeftTan); float outer = max(left_fov.LeftTan, right_fov.RightTan); - frustum_skew = (inner-outer)*2/(inner+outer); + frustum_skew = (inner-outer)/(inner+outer); left_fov.UpTan = right_fov.UpTan = vertical; left_fov.DownTan = right_fov.DownTan = vertical; -- 2.45.2