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:
parent
cd06896b2d
commit
d84f48cc0c
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ void FGScenery::init() {
|
||||||
// Terrain branch
|
// Terrain branch
|
||||||
terrain_branch = new osg::Group;
|
terrain_branch = new osg::Group;
|
||||||
terrain_branch->setName( "Terrain" );
|
terrain_branch->setName( "Terrain" );
|
||||||
|
terrain_branch->setNodeMask( ~simgear::MODELLIGHT_BIT );
|
||||||
scene_graph->addChild( terrain_branch.get() );
|
scene_graph->addChild( terrain_branch.get() );
|
||||||
SGSceneUserData* userData;
|
SGSceneUserData* userData;
|
||||||
userData = SGSceneUserData::getOrCreateSceneUserData(terrain_branch.get());
|
userData = SGSceneUserData::getOrCreateSceneUserData(terrain_branch.get());
|
||||||
|
|
Loading…
Add table
Reference in a new issue