- fixed wrong order of actions on shadow map updater.

This commit is contained in:
Christoph Oelckers 2020-05-04 22:15:18 +02:00
parent c6cc763907
commit 0cf967dc06

View file

@ -111,10 +111,10 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
if (mainview && toscreen)
{
screen->SetAABBTree(camera->Level->aabbTree);
screen->UpdateShadowMap();
screen->mShadowMap.SetCollectLights([=] {
CollectLights(camera->Level);
});
screen->UpdateShadowMap();
}
// Update the attenuation flag of all light defaults for each viewpoint.