Changeset 4805 for OpenSceneGraph/trunk/examples/osgplanets/osgplanets.cpp
- Timestamp:
- 11/17/05 21:22:55 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgplanets/osgplanets.cpp
r3701 r4805 456 456 if ( image ) 457 457 { 458 osg::Texture2D* tex2d = new osg::Texture2D( image );459 tex2d->setWrap( osg::Texture::WRAP_S, osg::Texture::REPEAT );460 tex2d->setWrap( osg::Texture::WRAP_T, osg::Texture::REPEAT );458 osg::Texture2D* tex2d = new osg::Texture2D( image ); 459 tex2d->setWrap( osg::Texture::WRAP_S, osg::Texture::REPEAT ); 460 tex2d->setWrap( osg::Texture::WRAP_T, osg::Texture::REPEAT ); 461 461 geodePlanet->getOrCreateStateSet()->setTextureAttributeAndModes( 0, tex2d, osg::StateAttribute::ON ); 462 462 … … 495 495 496 496 stateset->setTextureAttribute( 1, texenv ); 497 osg::Texture2D* tex2d = new osg::Texture2D( image );498 tex2d->setWrap( osg::Texture::WRAP_S, osg::Texture::REPEAT );499 tex2d->setWrap( osg::Texture::WRAP_T, osg::Texture::REPEAT );497 osg::Texture2D* tex2d = new osg::Texture2D( image ); 498 tex2d->setWrap( osg::Texture::WRAP_S, osg::Texture::REPEAT ); 499 tex2d->setWrap( osg::Texture::WRAP_T, osg::Texture::REPEAT ); 500 500 stateset->setTextureAttributeAndModes( 1, tex2d, osg::StateAttribute::ON ); 501 501 }
