From: Frederic Bouvier Date: Sun, 10 Jun 2012 20:29:16 +0000 (+0200) Subject: Get more fps in Rembrandt: don't redraw the terrain in the lighting stage. Should... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d84f48cc0c4411a6f18f42dbf5a2773fc683d898;p=flightgear.git 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. --- diff --git a/src/Scenery/scenery.cxx b/src/Scenery/scenery.cxx index eeec77bb4..4b3c8c60e 100644 --- a/src/Scenery/scenery.cxx +++ b/src/Scenery/scenery.cxx @@ -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());