From 8398b779fbf75447d0f8c43f1aeb17b4a8cfd726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 6 Nov 2022 11:51:28 +0100 Subject: [PATCH] 6dof fix --- Common/VR/VRRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/VR/VRRenderer.cpp b/Common/VR/VRRenderer.cpp index 70b0acbd576d..f04a3c15c807 100644 --- a/Common/VR/VRRenderer.cpp +++ b/Common/VR/VRRenderer.cpp @@ -342,7 +342,7 @@ bool VR_InitFrame( engine_t* engine ) { } vrMatrix[matrix] = ovrMatrix4f_CreateFromQuaternion(&invView.orientation); - float scale = VR_GetConfigFloat(VR_CONFIG_6DOF_SCALE) * 0.000001f; + float scale = VR_GetConfigFloat(VR_CONFIG_6DOF_SCALE); if (!flatScreen && vrConfig[VR_CONFIG_6DOF_ENABLED]) { vrMatrix[matrix].M[0][3] -= hmdposition.x * (vrConfig[VR_CONFIG_MIRROR_AXIS_X] ? -1.0f : 1.0f) * scale; vrMatrix[matrix].M[1][3] -= hmdposition.y * (vrConfig[VR_CONFIG_MIRROR_AXIS_Y] ? -1.0f : 1.0f) * scale;