|
|
|
@ -271,7 +271,7 @@ private:
|
|
|
|
|
unsigned int mNodeMask;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
QuadTreeWorld::QuadTreeWorld(osg::Group *parent, osg::Group *compileRoot, Resource::ResourceSystem *resourceSystem, Storage *storage, unsigned int nodeMask, unsigned int preCompileMask, unsigned int borderMask, int compMapResolution, float compMapLevel, float lodFactor, int vertexLodMod, float maxCompGeometrySize)
|
|
|
|
|
QuadTreeWorld::QuadTreeWorld(osg::Group *parent, osg::Group *compileRoot, Resource::ResourceSystem *resourceSystem, Storage *storage, unsigned int nodeMask, unsigned int preCompileMask, unsigned int borderMask, int compMapResolution, float compMapLevel, float lodFactor, int vertexLodMod, float maxCompGeometrySize, bool debugChunks)
|
|
|
|
|
: TerrainGrid(parent, compileRoot, resourceSystem, storage, nodeMask, preCompileMask, borderMask)
|
|
|
|
|
, mViewDataMap(new ViewDataMap)
|
|
|
|
|
, mQuadTreeBuilt(false)
|
|
|
|
@ -279,7 +279,7 @@ QuadTreeWorld::QuadTreeWorld(osg::Group *parent, osg::Group *compileRoot, Resour
|
|
|
|
|
, mVertexLodMod(vertexLodMod)
|
|
|
|
|
, mViewDistance(std::numeric_limits<float>::max())
|
|
|
|
|
, mMinSize(1/8.f)
|
|
|
|
|
, mDebugTerrainChunks(Settings::Manager::getBool("debug chunks", "Terrain"))
|
|
|
|
|
, mDebugTerrainChunks(debugChunks)
|
|
|
|
|
{
|
|
|
|
|
mChunkManager->setCompositeMapSize(compMapResolution);
|
|
|
|
|
mChunkManager->setCompositeMapLevel(compMapLevel);
|
|
|
|
|