From: frohlich Date: Sat, 6 Jan 2007 15:08:40 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=af9082cd9fdf3d6276e8e2a03fadfdbed28a3e8e;p=simgear.git Modified Files: moon.cxx: The moo's state like it was with plib --- diff --git a/simgear/scene/sky/moon.cxx b/simgear/scene/sky/moon.cxx index 6cfb8788..464b5a0f 100644 --- a/simgear/scene/sky/moon.cxx +++ b/simgear/scene/sky/moon.cxx @@ -105,11 +105,11 @@ SGMoon::build( SGPath path, double moon_size ) { blendFunc->setFunction(osg::BlendFunc::SRC_ALPHA, osg::BlendFunc::ONE); stateSet->setAttributeAndModes(blendFunc); -// osg::AlphaFunc* alphaFunc = new osg::AlphaFunc; -// alphaFunc->setFunction(osg::AlphaFunc::GREATER); -// alphaFunc->setReferenceValue(0.01); -// stateSet->setAttributeAndModes(alphaFunc); - stateSet->setMode(GL_ALPHA_TEST, osg::StateAttribute::OFF); + osg::AlphaFunc* alphaFunc = new osg::AlphaFunc; + alphaFunc->setFunction(osg::AlphaFunc::GREATER); + alphaFunc->setReferenceValue(0.01); + stateSet->setAttribute(alphaFunc); + stateSet->setMode(GL_ALPHA_TEST, osg::StateAttribute::ON); // force a repaint of the moon colors with arbitrary defaults repaint( 0.0 );