mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Added some comments to try to help understand the correction pipeline
This commit is contained in:
parent
ae63610582
commit
7432c8361e
1 changed files with 4 additions and 1 deletions
|
@ -341,7 +341,10 @@ void HmdDisplayPlugin::updateFrameData() {
|
|||
auto invBatchPose = glm::inverse(_currentFrame->pose);
|
||||
auto invPrevBatchPose = glm::inverse(_currentFrame->prevPose);
|
||||
auto correction = invBatchPose * _currentPresentFrameInfo.presentPose;
|
||||
auto prevCorrection = /*_currentFrame->prevView * glm::inverse(_prevRenderView) */ invPrevBatchPose * _previousPresentFrameInfo.presentPose;
|
||||
// _currentFrame->prevView * glm::inverse(_prevRenderView) : this is to get the
|
||||
// view matrix of the last rendered frame in the present thread
|
||||
auto prevCorrection = _currentFrame->prevView * glm::inverse(_prevRenderView);
|
||||
prevCorrection = prevCorrection * invPrevBatchPose * _previousPresentFrameInfo.presentPose;
|
||||
|
||||
getGLBackend()->setCameraCorrection(correction, prevCorrection);
|
||||
|
||||
|
|
Loading…
Reference in a new issue