- moved the last remaining function from gl_shadowmap.cpp elsewhere so that the file can be deleted.

This commit is contained in:
Christoph Oelckers 2018-10-28 17:09:22 +01:00
commit e6efee61b1
7 changed files with 61 additions and 98 deletions

View file

@ -162,13 +162,24 @@ bool IShadowMap::ValidateAABBTree()
return false;
}
void IShadowMap::PerformUpdate()
bool IShadowMap::PerformUpdate()
{
UploadAABBTree();
UploadLights();
mLightList->BindBase();
mNodesBuffer->BindBase();
mLinesBuffer->BindBase();
UpdateCycles.Reset();
LightsProcessed = 0;
LightsShadowmapped = 0;
if (IsEnabled())
{
UpdateCycles.Clock();
UploadAABBTree();
UploadLights();
mLightList->BindBase();
mNodesBuffer->BindBase();
mLinesBuffer->BindBase();
return true;
}
return false;
}
void IShadowMap::UploadLights()