Add relative-to-camera rendering for large worlds

This commit is contained in:
Wojtek Figat
2022-06-21 20:03:13 +02:00
parent f3bd0e469c
commit 134c8b99aa
35 changed files with 331 additions and 195 deletions

View File

@@ -255,6 +255,9 @@ void SceneRenderTask::ClearCustomActors()
void SceneRenderTask::CollectPostFxVolumes(RenderContext& renderContext)
{
// Cache WorldPosition used for PostFx volumes blending (RenderView caches it later on)
renderContext.View.WorldPosition = renderContext.View.Origin + renderContext.View.Position;
if ((ActorsSource & ActorsSources::Scenes) != 0)
{
Level::CollectPostFxVolumes(renderContext);