Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/cinder/vr/openvr/Hmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,8 @@ float Hmd::getFullFov() const

ci::Area Hmd::getEyeViewport( ci::vr::Eye eye ) const
{
auto size = mRenderTargetSize;
if( ci::vr::EYE_LEFT == eye ) {
return Area( 0, 0, size.x / 2, size.y );
}
return Area( ( size.x + 1 ) / 2, 0, size.x, size.y );
// The viewport is the same for both eyes
return Area( { 0, 0 }, mRenderTargetSize );
}

void Hmd::enableEye( ci::vr::Eye eye, ci::vr::CoordSys eyeMatrixMode )
Expand Down Expand Up @@ -880,4 +877,4 @@ void Hmd::activateRenderModel( ::vr::TrackedDeviceIndex_t trackedDeviceIndex )

}}} // namespace cinder::vr::vive

#endif // defined( CINDER_VR_ENABLE_OPENVR )
#endif // defined( CINDER_VR_ENABLE_OPENVR )