Skip to content

Commit

Permalink
6dof fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Nov 6, 2022
1 parent ef3b060 commit 8398b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/VR/VRRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8398b77

Please sign in to comment.