- Timestamp:
- Feb 11, 2016 10:39:04 PM (8 years ago)
- Location:
- geovis/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Makefile.in
r5973 r6004 6 6 USE_READ_THREAD = #yes 7 7 USE_CACHE = yes 8 USE_OSGEARTH_TRUNK = #yes9 8 USE_THROTTLING_SLEEP = #yes 10 9 SLEEP_AFTER_QUEUE_FRAME = yes 11 10 QUEUE_ONLY_ONE_FRAME = yes 11 USE_REX = #yes 12 12 13 13 bindir = @bindir@ … … 106 106 DEFINES += -DUSE_CACHE 107 107 endif 108 ifdef USE_OSGEARTH_TRUNK109 DEFINES += -DUSE_OSGEARTH_TRUNK110 endif111 108 ifdef USE_THROTTLING_SLEEP 112 109 DEFINES += -DUSE_THROTTLING_SLEEP … … 117 114 ifdef QUEUE_ONLY_ONE_FRAME 118 115 DEFINES += -DQUEUE_ONLY_ONE_FRAME 116 endif 117 ifdef USE_REX 118 DEFINES += -DUSE_REX 119 119 endif 120 120 -
geovis/trunk/Renderer.cpp
r6002 r6004 86 86 #include <osgEarthDrivers/gdal/GDALOptions> 87 87 #include <osgEarthDrivers/engine_mp/MPTerrainEngineOptions> 88 #ifdef USE_REX 89 #include <osgEarthDrivers/engine_rex/RexTerrainEngineOptions> 90 #endif 88 91 89 92 #include "Renderer.h" … … 808 811 bopts.url() = getBaseImage(); 809 812 addImageLayer("base", bopts); 810 osgEarth::Drivers::MPTerrainEngine::MPTerrainEngineOptions mpOpt; 813 #ifdef USE_REX 814 osgEarth::Drivers::RexTerrainEngine::RexTerrainEngineOptions engineOpt; 815 #else 816 osgEarth::Drivers::MPTerrainEngine::MPTerrainEngineOptions engineOpt; 817 #endif 811 818 // Set background layer color 812 mpOpt.color() = bgColor;813 // mpOpt.minLOD() = 1;819 engineOpt.color() = bgColor; 820 //engineOpt.minLOD() = 1; 814 821 // Sets shader uniform for terrain renderer (config var defaults to false) 815 822 if (!_map->isGeocentric()) { 816 mpOpt.enableLighting() = false;817 } 818 osgEarth::MapNodeOptions mapNodeOpts( mpOpt);823 engineOpt.enableLighting() = false; 824 } 825 osgEarth::MapNodeOptions mapNodeOpts(engineOpt); 819 826 // Sets GL_LIGHTING state in MapNode's StateSet (config var defaults to true) 820 827 //mapNodeOpts.enableLighting() = true;
Note: See TracChangeset
for help on using the changeset viewer.