Modified Files:
moon.cxx: The moo's state like it was with plib
This commit is contained in:
parent
6a0bb18fca
commit
af9082cd9f
@ -105,11 +105,11 @@ SGMoon::build( SGPath path, double moon_size ) {
|
|||||||
blendFunc->setFunction(osg::BlendFunc::SRC_ALPHA, osg::BlendFunc::ONE);
|
blendFunc->setFunction(osg::BlendFunc::SRC_ALPHA, osg::BlendFunc::ONE);
|
||||||
stateSet->setAttributeAndModes(blendFunc);
|
stateSet->setAttributeAndModes(blendFunc);
|
||||||
|
|
||||||
// osg::AlphaFunc* alphaFunc = new osg::AlphaFunc;
|
osg::AlphaFunc* alphaFunc = new osg::AlphaFunc;
|
||||||
// alphaFunc->setFunction(osg::AlphaFunc::GREATER);
|
alphaFunc->setFunction(osg::AlphaFunc::GREATER);
|
||||||
// alphaFunc->setReferenceValue(0.01);
|
alphaFunc->setReferenceValue(0.01);
|
||||||
// stateSet->setAttributeAndModes(alphaFunc);
|
stateSet->setAttribute(alphaFunc);
|
||||||
stateSet->setMode(GL_ALPHA_TEST, osg::StateAttribute::OFF);
|
stateSet->setMode(GL_ALPHA_TEST, osg::StateAttribute::ON);
|
||||||
|
|
||||||
// force a repaint of the moon colors with arbitrary defaults
|
// force a repaint of the moon colors with arbitrary defaults
|
||||||
repaint( 0.0 );
|
repaint( 0.0 );
|
||||||
|
Loading…
Reference in New Issue
Block a user