From: Frederic Bouvier Date: Sat, 31 Mar 2012 18:39:47 +0000 (+0200) Subject: Be sure to not render light volumes in the classical renderer X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4094356f50b39c8af30e8f1533d60fd900a6d7a;p=flightgear.git Be sure to not render light volumes in the classical renderer --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index bcd9716a1..e04d6ab1d 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -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())