Fish
27-12-2008 19:56:30
Ogre 1.7.0 removed the ogre::Material::getLodIndexSquaredDepth() function. This patch seems to work.
-Fish
Index: BatchedGeometry.cpp
===================================================================
--- BatchedGeometry.cpp (revision 2586)
+++ BatchedGeometry.cpp (working copy)
@@ -762,7 +762,7 @@
if (built){
//Update material technique based on camera distance
assert(!material.isNull());
- bestTechnique = material->getBestTechnique(material->getLodIndexSquaredDepth(parent->minDistanceSquared));
+ bestTechnique = material->getBestTechnique(material->getLodIndex(parent->minDistanceSquared * parent->minDistanceSquared));
//Add to render queue
queue->addRenderable(this, group);
-Fish