diff options
author | Merov Linden <merov@lindenlab.com> | 2013-07-15 13:29:10 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-07-15 13:29:10 -0700 |
commit | 8a3753b7beb019fabc2077245b2f328fe1769abf (patch) | |
tree | 45f032edad56fb5063800d48cc6337d7d6bceb6e /indra/newview/llvovolume.cpp | |
parent | 7414490a7a068f14d34fff104476647f5057cf35 (diff) | |
parent | 6060e5e46acbeb20a301070a0fd0efea029d33d0 (diff) |
Pull merge from lindenlab/viewer-release
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rwxr-xr-x | indra/newview/llvovolume.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 007c2b9003..3be1f52352 100755 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -3517,7 +3517,12 @@ F32 LLVOVolume::getBinRadius() } else if (mDrawable->isStatic()) { - radius = llmax((S32) mDrawable->getRadius(), 1)*size_factor; + F32 szf = size_factor; + + radius = llmax(mDrawable->getRadius(), szf); + + radius = powf(radius, 1.f+szf/radius); + radius *= 1.f + mDrawable->mDistanceWRTCamera * distance_factor[1]; radius += mDrawable->mDistanceWRTCamera * distance_factor[0]; } |