|
|
|
@ -171,6 +171,12 @@ osg::ref_ptr<osg::Node> TerrainGrid::buildTerrain (osg::Group* parent, float chu
|
|
|
|
|
transform->addChild(effect);
|
|
|
|
|
effect->addChild(geode);
|
|
|
|
|
|
|
|
|
|
if (mIncrementalCompileOperation)
|
|
|
|
|
{
|
|
|
|
|
mIncrementalCompileOperation->add(geode);
|
|
|
|
|
mIncrementalCompileOperation->add(textureCompileDummy);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return transform;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -197,16 +203,6 @@ void TerrainGrid::loadCell(int x, int y)
|
|
|
|
|
geode->accept(*mKdTreeBuilder);
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
if (mIncrementalCompileOperation)
|
|
|
|
|
{
|
|
|
|
|
mIncrementalCompileOperation->add(geode);
|
|
|
|
|
mIncrementalCompileOperation->add(textureCompileDummy);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mGrid[std::make_pair(x,y)] = element.release();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|