Shifted to the static-list arrangement for probe instance tracking to help performance as well as drastically streamline the data submission/material instance flow for probe rendering.

This commit is contained in:
Areloch 2018-10-07 17:32:23 -05:00
parent 4efcb567b0
commit 1966d348e4
22 changed files with 901 additions and 1250 deletions

View file

@ -150,12 +150,9 @@ void Skylight::unpackUpdate(NetConnection *conn, BitStream *stream)
void Skylight::updateProbeParams()
{
if (mProbeInfo == nullptr)
return;
Parent::updateProbeParams();
mProbeInfo->mProbeShapeType = ProbeInfo::Sphere;
mProbeInfo->mProbeShapeType = ProbeRenderInst::Sphere;
mProbeInfo->setPosition(getPosition());
@ -199,7 +196,7 @@ void Skylight::prepRenderImage(SceneRenderState *state)
// Get a handy pointer to our RenderPassmanager
//RenderPassManager *renderPass = state->getRenderPass();
PROBEMGR->registerSkylight(mProbeInfo, this);
//PROBEMGR->registerSkylight(mProbeInfo, this);
if (Skylight::smRenderPreviewProbes && gEditingMission && mEditorShapeInst && mPrefilterMap != nullptr)
{