mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-17 21:53:47 +00:00
Implemented registration of probes to avoid rendering all probes when unneeded.
This commit is contained in:
parent
a4e592534e
commit
ecef09525a
5 changed files with 26 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue