Advertisement

osgEarth的Rex引擎原理分析(九十九)如何定义裸球颜色并在绘制时起作用

阅读量:

目标:(九十八)中的问题178

1、在earth文件中进行设定,其默认颜色为白色

复制代码
 <terrain driver="rex" color="#ffffffff" >

    
 </terrain>
    
    
    
    
复制代码
 osgEarthDrivers/engine_rex/RexTerrainEngineOptions

    
 RexTerrainEngineOptions( const ConfigOptions& options =ConfigOptions() ) : 
    
         _color                  ( Color::White )
    
    
    
    

2、在设置setMap过程中,rex引擎会将相关颜色参数填入RexTerrainEngineOptions配置项中。

复制代码
 osgEarthDrivers/engine_rex/RexTerrainEngineNode.cpp

    
 void
    
 RexTerrainEngineNode::setMap(const Map* map, const TerrainOptions& options)
    
 {
    
     _terrainOptions.mer

全部评论 (0)

还没有任何评论哟~