Rex引擎原理分析 osgEarth TileDrawable分析
发布时间
阅读量:
阅读量
目标:(三十)中的问题93
承担组织瓦片几何结构的功能,不涉及具体渲染操作
在进行绘制过程时,TerrainCuller将从该结构中获取几何信息。
osgEarthDrivers/engine_rex/TerrainCuller.cpp
DrawTileCommand*
TerrainCuller::addDrawCommand(UID uid, const TileRenderModel* model, const RenderingPass* pass, TileNode* tileNode)
{
SurfaceNode* surface = tileNode->getSurfaceNode();
osg::ref_ptr<LayerDrawable> drawable = _terrain.layer(uid);
DrawTileCommand* tile = &drawable->_tiles.back();
tile->_geom = surface->getDrawable()->_geom.get();
}
待继续分析列表:
~~9、earth文件中都有哪些options(
全部评论 (0)
还没有任何评论哟~
