Browse Source

couple additinal places for scroe to be set

Azaezel 6 years ago
parent
commit
b2ca85b988
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Engine/source/T3D/lighting/reflectionProbe.cpp

+ 5 - 1
Engine/source/T3D/lighting/reflectionProbe.cpp

@@ -500,6 +500,7 @@ void ReflectionProbe::updateProbeParams()
    mProbeInfo->mProbePosOffset = mProbePosOffset;
    mProbeInfo->mProbePosOffset = mProbePosOffset;
 
 
    mProbeInfo->mDirty = true;
    mProbeInfo->mDirty = true;
+   mProbeInfo->mScore = mMaxDrawDistance;
 }
 }
 
 
 void ReflectionProbe::updateMaterial()
 void ReflectionProbe::updateMaterial()
@@ -650,7 +651,10 @@ void ReflectionProbe::prepRenderImage(SceneRenderState *state)
 
 
    //Culling distance. Can be adjusted for performance options considerations via the scalar
    //Culling distance. Can be adjusted for performance options considerations via the scalar
    if (dist > mMaxDrawDistance * Con::getFloatVariable("$pref::GI::ProbeDrawDistScale", 1.0))
    if (dist > mMaxDrawDistance * Con::getFloatVariable("$pref::GI::ProbeDrawDistScale", 1.0))
-      return;
+   {
+	   mProbeInfo->mScore = mMaxDrawDistance;
+	   return;
+   }
 
 
    if (mReflectionModeType == DynamicCubemap && mRefreshRateMS < (Platform::getRealMilliseconds() - mDynamicLastBakeMS))
    if (mReflectionModeType == DynamicCubemap && mRefreshRateMS < (Platform::getRealMilliseconds() - mDynamicLastBakeMS))
    {
    {