1
0
Fork 0

Get more fps in Rembrandt: don't redraw the terrain in the lighting stage. Should also fix the green z-fight that occurs on terrain with some camera directions.

This commit is contained in:
Frederic Bouvier 2012-06-10 22:29:16 +02:00
parent cd06896b2d
commit d84f48cc0c

View file

@ -229,6 +229,7 @@ void FGScenery::init() {
// Terrain branch
terrain_branch = new osg::Group;
terrain_branch->setName( "Terrain" );
terrain_branch->setNodeMask( ~simgear::MODELLIGHT_BIT );
scene_graph->addChild( terrain_branch.get() );
SGSceneUserData* userData;
userData = SGSceneUserData::getOrCreateSceneUserData(terrain_branch.get());