mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
couple additinal places for scroe to be set
This commit is contained in:
parent
79d506d439
commit
b2ca85b988
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue