1
0
Fork 0

Be sure to not render light volumes in the classical renderer

This commit is contained in:
Frederic Bouvier 2012-03-31 20:39:47 +02:00
parent 2416f9f8d8
commit e4094356f5

View file

@ -1714,7 +1714,7 @@ FGRenderer::update( ) {
l->get_sun_angle()*SGD_RADIANS_TO_DEGREES);
mUpdateVisitor->setVisibility(actual_visibility);
simgear::GroundLightManager::instance()->update(mUpdateVisitor.get());
osg::Node::NodeMask cullMask = ~simgear::LIGHTS_BITS & ~simgear::PICK_BIT;
osg::Node::NodeMask cullMask = ~simgear::LIGHTS_BITS & ~simgear::PICK_BIT & ~simgear::MODELLIGHT_BIT;
cullMask |= simgear::GroundLightManager::instance()
->getLightNodeMask(mUpdateVisitor.get());
if (_panel_hotspots->getBoolValue())