diff options
author | callum_linden <none@none> | 2013-06-28 13:36:41 -0700 |
---|---|---|
committer | callum_linden <none@none> | 2013-06-28 13:36:41 -0700 |
commit | bd41392b7ec1dd90cd0039d87bbbef8beda1796a (patch) | |
tree | aa01ba89c055c5ed427c25227f894fd41b55a220 /indra/newview/llvovolume.cpp | |
parent | 4696eeeb30ce4d01c3bcbe74c9024f05d848968a (diff) | |
parent | b6b4b5913827ca864dac94c72a127f520288ef8e (diff) |
Merge with viewer-bear which was just merged with 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 e26c54c23c..b84b215f33 100755 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -3546,7 +3546,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]; } |