samuncle suggested to put a slight randomisation in LOD; I'm not convinced it's useful but he's the artist so I listen ;P

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7858 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-03-08 02:54:27 +00:00
parent b1c392e738
commit 3c3a5985cf

View File

@@ -56,6 +56,10 @@ void LODNode::OnRegisterSceneNode()
void LODNode::add(int level, scene::ISceneNode* node, bool reparent)
{
// samuncle suggested to put a slight randomisation in LOD
// I'm not convinced (Auria) but he's the artist pro, so I listen ;P
level += ((rand()%1000)-500)/500.0f*(level*0.1f);
// FIXME : this class assumes that 'm_detail' is sorted, this may not always be the case
node->grab();
node->remove();