- changed shadowmap setup so that the AABB tree is owned and controlled by the map, not the renderer.

Needed to properly separate game logic from backend implementation, the shadowmap had both in the same object thanks to the old setup.
This commit is contained in:
Christoph Oelckers 2020-04-26 18:54:43 +02:00
commit ba0b42465d
14 changed files with 356 additions and 315 deletions

View file

@ -72,7 +72,10 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
R_SetupFrame(mainvp, r_viewwindow, camera);
if (mainview && toscreen)
{
screen->SetAABBTree(camera->Level->aabbTree);
screen->UpdateShadowMap();
}
// Update the attenuation flag of all light defaults for each viewpoint.
// This function will only do something if the setting differs.