mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-22 11:52:10 +00:00
- fixed wrong order of actions on shadow map updater.
This commit is contained in:
parent
c6cc763907
commit
0cf967dc06
1 changed files with 1 additions and 1 deletions
|
@ -111,10 +111,10 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
|
||||||
if (mainview && toscreen)
|
if (mainview && toscreen)
|
||||||
{
|
{
|
||||||
screen->SetAABBTree(camera->Level->aabbTree);
|
screen->SetAABBTree(camera->Level->aabbTree);
|
||||||
screen->UpdateShadowMap();
|
|
||||||
screen->mShadowMap.SetCollectLights([=] {
|
screen->mShadowMap.SetCollectLights([=] {
|
||||||
CollectLights(camera->Level);
|
CollectLights(camera->Level);
|
||||||
});
|
});
|
||||||
|
screen->UpdateShadowMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the attenuation flag of all light defaults for each viewpoint.
|
// Update the attenuation flag of all light defaults for each viewpoint.
|
||||||
|
|
Loading…
Reference in a new issue