mMipCount was never being filled out. just use mPrefilterArray->getMipMapLevels() direct

This commit is contained in:
AzaezelX 2020-12-05 00:04:19 -06:00
parent 80eb4ab2ba
commit 53f9f49410

View file

@ -749,7 +749,7 @@ void RenderProbeMgr::render( SceneRenderState *state )
mProbeArrayEffect->setShaderConst("$numProbes", (S32)mProbeData.effectiveProbeCount);
mProbeArrayEffect->setShaderConst("$skylightCubemapIdx", (S32)mProbeData.skyLightIdx);
mProbeArrayEffect->setShaderConst("$cubeMips", (float)mMipCount);
mProbeArrayEffect->setShaderConst("$cubeMips", (float)mPrefilterArray->getMipMapLevels());
//also set up some colors
Vector<Point4F> contribColors;