Implemented registration of probes to avoid rendering all probes when unneeded.

This commit is contained in:
Areloch 2018-11-19 01:18:09 -06:00
parent a4e592534e
commit ecef09525a
5 changed files with 26 additions and 3 deletions

View file

@ -201,6 +201,15 @@ ProbeRenderInst* ProbeManager::createProbeInfo(ProbeRenderInst* probe /* = NULL
return outProbe;
}
void ProbeManager::registerProbe(U32 probeIdx)
{
//Mostly for consolidation, but also lets us sanity check or prep any other data we need for rendering this in one place at time of flagging for render
if (probeIdx >= ProbeRenderInst::all.size())
return;
mRegisteredProbes.push_back_unique(probeIdx);
}
/*void ProbeManager::initLightFields()
{
ProbeManagerMap &ProbeManagers = _getProbeManagers();