Fix reflection probes capture seams on cube face edges due to volumetric fog

#3252
This commit is contained in:
Wojtek Figat
2025-07-03 13:54:22 +02:00
parent a138c6b062
commit bf345f13ce
5 changed files with 22 additions and 7 deletions

View File

@@ -200,12 +200,19 @@ void SceneRenderTask::RemoveGlobalCustomPostFx(PostProcessEffect* fx)
void SceneRenderTask::CollectPostFxVolumes(RenderContext& renderContext)
{
PROFILE_CPU();
// Cache WorldPosition used for PostFx volumes blending (RenderView caches it later on)
renderContext.View.WorldPosition = renderContext.View.Origin + renderContext.View.Position;
if (EnumHasAllFlags(ActorsSource, ActorsSources::Scenes))
{
Level::CollectPostFxVolumes(renderContext);
//ScopeLock lock(Level::ScenesLock);
for (Scene* scene : Level::Scenes)
{
if (scene->IsActiveInHierarchy())
scene->Rendering.CollectPostFxVolumes(renderContext);
}
}
if (EnumHasAllFlags(ActorsSource, ActorsSources::CustomActors))
{