mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-18 17:37:30 +02:00
fix the slight flicker that's being caused by error in calculating the model inverse matrix
This commit is contained in:
parent
ae73a7e97f
commit
32b56a4bf7
1 changed files with 5 additions and 1 deletions
|
@ -97,7 +97,11 @@ void GLBackend::TransformStageState::preUpdate(size_t commandIndex, const Stereo
|
|||
|
||||
if (_invalidModel) {
|
||||
_model.getMatrix(_object._model);
|
||||
_model.getInverseMatrix(_object._modelInverse);
|
||||
|
||||
// FIXME - we don't want to be using glm::inverse() here but it fixes the flickering issue we are
|
||||
// seeing with slightly physical objects.
|
||||
//_model.getInverseMatrix(_object._modelInverse);
|
||||
_object._modelInverse =glm::inverse(_object._model);
|
||||
}
|
||||
|
||||
if (_invalidView || _invalidProj || _invalidViewport) {
|
||||
|
|
Loading…
Reference in a new issue