- Timestamp:
- Aug 30, 2016 5:10:06 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Renderer.cpp
r6488 r6508 864 864 // Sets GL_LIGHTING state in MapNode StateSet (config var defaults to true) 865 865 //mapNodeOpts.enableLighting() = true; 866 //mapNodeOpts.getTerrainOptions().loadingPolicy().mapLoadingThreadsPerCore() = 1; 867 //mapNodeOpts.getTerrainOptions().loadingPolicy().numLoadingThreads() = 1; 868 //mapNodeOpts.getTerrainOptions().loadingPolicy().numCompileThreadsPerCore() = 1; 869 //mapNodeOpts.getTerrainOptions().loadingPolicy().numCompileThreads() = 1; 866 #if 0 867 osgEarth::TerrainOptions terrOpts; 868 //terrOpts.loadingPolicy().mapLoadingThreadsPerCore() = 1; 869 //terrOpts.loadingPolicy().numLoadingThreads() = 1; 870 //terrOpts.loadingPolicy().numCompileThreadsPerCore() = 1; 871 //terrOpts.loadingPolicy().numCompileThreads() = 1; 872 if (_map->isGeocentric()) { 873 // The default is 17 posts 874 terrOpts.tileSize() = 17; 875 } else { 876 // Can reduce if we don't have elevation data 877 terrOpts.tileSize() = 2; 878 } 879 mapNodeOpts.setTerrainOptions(terrOpts); 880 #endif 870 881 osgEarth::MapNode *mapNode = new osgEarth::MapNode(map, mapNodeOpts); 871 882 _mapNode = mapNode;
Note: See TracChangeset
for help on using the changeset viewer.