mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:13:15 +02:00
don't update jitter in mirror views
This commit is contained in:
parent
9009ba3681
commit
8e9fab9f98
1 changed files with 1 additions and 2 deletions
|
@ -1004,8 +1004,6 @@ void GLBackend::updatePresentFrame(const Mat4& correction, bool primary) {
|
||||||
_transform._presentFrame.correction = correction;
|
_transform._presentFrame.correction = correction;
|
||||||
_transform._presentFrame.correctionInverse = glm::inverse(correction);
|
_transform._presentFrame.correctionInverse = glm::inverse(correction);
|
||||||
|
|
||||||
_transform._projectionJitter._currentSampleIndex++;
|
|
||||||
|
|
||||||
// Update previous views of saved transforms
|
// Update previous views of saved transforms
|
||||||
for (auto& viewProjState : _transform._savedTransforms) {
|
for (auto& viewProjState : _transform._savedTransforms) {
|
||||||
viewProjState._state._previousCorrectedView = viewProjState._state._correctedView;
|
viewProjState._state._previousCorrectedView = viewProjState._state._correctedView;
|
||||||
|
@ -1013,6 +1011,7 @@ void GLBackend::updatePresentFrame(const Mat4& correction, bool primary) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (primary) {
|
if (primary) {
|
||||||
|
_transform._projectionJitter._currentSampleIndex++;
|
||||||
_transform._presentFrame.unflippedCorrection = _transform._presentFrame.correction;
|
_transform._presentFrame.unflippedCorrection = _transform._presentFrame.correction;
|
||||||
quat flippedRotation = glm::quat_cast(_transform._presentFrame.unflippedCorrection);
|
quat flippedRotation = glm::quat_cast(_transform._presentFrame.unflippedCorrection);
|
||||||
flippedRotation.y *= -1.0f;
|
flippedRotation.y *= -1.0f;
|
||||||
|
|
Loading…
Reference in a new issue