Merge pull request #398 from Azaezel/alpha40_fixCubeMips

mMipCount was never being filled out. just use mPrefilterArray->getMi…
This commit is contained in:
Brian Roberts 2020-12-05 12:36:49 -06:00 committed by GitHub
commit d18721d78e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;