Skip to content
Snippets Groups Projects
Commit 11a78da4 authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

more fix for SH-4400: Interesting: Side effect 1 of unloading culled objects.

parent cdf5a1e1
No related branches found
No related tags found
No related merge requests found
......@@ -374,14 +374,13 @@ bool LLVOCacheEntry::isRecentlyVisible() const
vis = (sCurVisible - getVisible() < mMinFrameRange);
}
if(!vis && !mParentID && mSceneContrib > 0.f)
//combination of projected area and squared distance
if(!vis && !mParentID && mSceneContrib > 0.0311f) //projection angle > 10 (degree)
{
//projection area: mSceneContrib
//squared distance
const F32 SQUARED_CUT_OFF_DIST = 225.0; //15m
const F32 SQUARED_CUT_OFF_DIST = 256.0; //16m
F32 rad = getBinRadius();
vis = (rad * rad / mSceneContrib > SQUARED_CUT_OFF_DIST);
vis = (rad * rad / mSceneContrib < SQUARED_CUT_OFF_DIST);
}
return vis;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment