diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-05-16 10:54:01 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-05-16 10:54:01 +0200 |
commit | ec8df1cdb15d1d136407e2943076bfd93a2e52a4 (patch) | |
tree | a01ef0dd9e299f6a0eec35182a834d081fcc3f57 /src | |
parent | d7483fd7939c5afb24eb3aa3bc377a9e18933a08 (diff) |
Remove restriction on free camera option (allow for sphere modes)
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index fc75397..592e3dd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1152,9 +1152,8 @@ bool CMainApplication::HandleInput() m_reset_rotation = glm::inverse(hmd_rot); } - if(projection_mode == ProjectionMode::SPHERE || projection_mode == ProjectionMode::SPHERE360 || !free_camera) { + if(!free_camera) hmd_pos = current_pos; - } vr::InputAnalogActionData_t analogData; if ( vr::VRInput()->GetAnalogActionData( m_actionAnalongInput, &analogData, sizeof( analogData ), vr::k_ulInvalidInputValueHandle ) == vr::VRInputError_None && analogData.bActive ) @@ -1771,9 +1770,7 @@ void CMainApplication::AddCubeToScene( const glm::mat4 &mat, std::vector<float> long columns = 32; long rows = 32; double angle_x = 3.14; - double angle_y = 3.14; - double radius_depth = 1.0; - double radius_height = 0.5; + double radius_height = 1.0; double radius = radius_height * width_ratio * 0.5; for(long row = 0; row < rows; ++row) { |