Fix render view panning when bug when no camera is active

#1997
This commit is contained in:
Wojtek Figat
2024-02-21 22:05:08 +01:00
parent d7dbc0fbdc
commit fa606ce5f6
2 changed files with 4 additions and 0 deletions

View File

@@ -403,6 +403,9 @@ void SceneRenderTask::OnEnd(GPUContext* context)
View.PrevView = View.View;
View.PrevProjection = View.Projection;
View.PrevViewProjection = View.ViewProjection();
// Remove jitter from the projection (in case it's unmodified by gameplay eg. due to missing camera)
View.Projection = View.NonJitteredProjection;
}
bool SceneRenderTask::Resize(int32 width, int32 height)