tracks wether or not a cubemap has been fully intitialised (as well as defautls for other shared entries). skips out including an uninitialized cuebmap in probe array (inthoery. in practice, need to root arround a bit more)

This commit is contained in:
Azaezel 2019-01-22 02:03:14 -06:00
parent 5b7e2edb66
commit 26a89882c7
5 changed files with 19 additions and 4 deletions

View file

@ -353,6 +353,9 @@ void RenderProbeMgr::render( SceneRenderState *state )
if (curEntry->mCubemap.isNull() || curEntry->mIrradianceCubemap.isNull())
continue;
if (!curEntry->mCubemap->isInitialised())
continue;
//Setup
const Point3F &probePos = curEntry->getPosition();
probePositions[i] = probePos + curEntry->mProbePosOffset;