Add level of detail to overworld pedestral, they were using a LOT of polygons

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10519 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-12-30 20:32:09 +00:00
parent 4f068e2bb3
commit ee6d1b3b64

View File

@@ -807,7 +807,6 @@ bool Track::loadMainTrack(const XMLNode &root)
#endif
handleAnimatedTextures(scene_node, *n);
m_all_nodes.push_back( scene_node );
// for challenge orbs, a bit more work to do
if (challenge.size() > 0)
@@ -849,7 +848,15 @@ bool Track::loadMainTrack(const XMLNode &root)
}
}
}
}
LODNode* lod_node = new LODNode("challenge_orb", scene_node->getParent(),
irr_driver->getSceneManager());
lod_node->add(50, scene_node, true /* reparent */);
scene_node = lod_node;
} // if (challenge.size() > 0)
m_all_nodes.push_back( scene_node );
}
} // for i