From 7c72ae665a6058180f0b139223574c85243e7010 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Sun, 25 Nov 2018 12:35:02 -0600 Subject: [PATCH] couple additinal places for scroe to be set --- Engine/source/T3D/lighting/reflectionProbe.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Engine/source/T3D/lighting/reflectionProbe.cpp b/Engine/source/T3D/lighting/reflectionProbe.cpp index 9a1767365..b5941c427 100644 --- a/Engine/source/T3D/lighting/reflectionProbe.cpp +++ b/Engine/source/T3D/lighting/reflectionProbe.cpp @@ -500,6 +500,7 @@ void ReflectionProbe::updateProbeParams() mProbeInfo->mProbePosOffset = mProbePosOffset; mProbeInfo->mDirty = true; + mProbeInfo->mScore = mMaxDrawDistance; } void ReflectionProbe::updateMaterial() @@ -650,7 +651,10 @@ void ReflectionProbe::prepRenderImage(SceneRenderState *state) //Culling distance. Can be adjusted for performance options considerations via the scalar if (dist > mMaxDrawDistance * Con::getFloatVariable("$pref::GI::ProbeDrawDistScale", 1.0)) - return; + { + mProbeInfo->mScore = mMaxDrawDistance; + return; + } if (mReflectionModeType == DynamicCubemap && mRefreshRateMS < (Platform::getRealMilliseconds() - mDynamicLastBakeMS)) {