Commented out settings of TexEnvCombine alpha values

This commit is contained in:
Robert Osfield 2004-11-01 16:16:31 +00:00
parent d548d77010
commit de9f5c82d0

View File

@ -568,15 +568,7 @@ osg::Geode* SolarSystem::createPlanet( double radius, const std::string& name, c
texenv->setOperand1_RGB(osg::TexEnvCombine::SRC_COLOR); texenv->setOperand1_RGB(osg::TexEnvCombine::SRC_COLOR);
texenv->setSource2_RGB(osg::TexEnvCombine::PRIMARY_COLOR); texenv->setSource2_RGB(osg::TexEnvCombine::PRIMARY_COLOR);
texenv->setOperand2_RGB(osg::TexEnvCombine::SRC_COLOR); texenv->setOperand2_RGB(osg::TexEnvCombine::SRC_COLOR);
/*
texenv->setCombine_Alpha(osg::TexEnvCombine::INTERPOLATE);
texenv->setSource0_Alpha(osg::TexEnvCombine::PREVIOUS);
texenv->setOperand0_Alpha(osg::TexEnvCombine::SRC_ALPHA);
texenv->setSource1_Alpha(osg::TexEnvCombine::TEXTURE);
texenv->setOperand1_Alpha(osg::TexEnvCombine::ONE_MINUS_SRC_ALPHA);
texenv->setSource2_RGB(osg::TexEnvCombine::PRIMARY_COLOR);
texenv->setOperand2_RGB(osg::TexEnvCombine::SRC_ALPHA);
*/
stateset->setTextureAttribute( 1, texenv ); stateset->setTextureAttribute( 1, texenv );
stateset->setTextureAttributeAndModes( 1, new osg::Texture2D( image ), osg::StateAttribute::ON ); stateset->setTextureAttributeAndModes( 1, new osg::Texture2D( image ), osg::StateAttribute::ON );
} }