Replaced tabs with spaces in examples.
This commit is contained in:
@@ -455,9 +455,9 @@ osg::Geode* SolarSystem::createPlanet( double radius, const std::string& name, c
|
||||
osg::Image* image = osgDB::readImageFile( textureName );
|
||||
if ( image )
|
||||
{
|
||||
osg::Texture2D* tex2d = new osg::Texture2D( image );
|
||||
tex2d->setWrap( osg::Texture::WRAP_S, osg::Texture::REPEAT );
|
||||
tex2d->setWrap( osg::Texture::WRAP_T, osg::Texture::REPEAT );
|
||||
osg::Texture2D* tex2d = new osg::Texture2D( image );
|
||||
tex2d->setWrap( osg::Texture::WRAP_S, osg::Texture::REPEAT );
|
||||
tex2d->setWrap( osg::Texture::WRAP_T, osg::Texture::REPEAT );
|
||||
geodePlanet->getOrCreateStateSet()->setTextureAttributeAndModes( 0, tex2d, osg::StateAttribute::ON );
|
||||
|
||||
// reset the object color to white to allow the texture to set the colour.
|
||||
@@ -494,9 +494,9 @@ osg::Geode* SolarSystem::createPlanet( double radius, const std::string& name, c
|
||||
texenv->setOperand2_RGB(osg::TexEnvCombine::SRC_COLOR);
|
||||
|
||||
stateset->setTextureAttribute( 1, texenv );
|
||||
osg::Texture2D* tex2d = new osg::Texture2D( image );
|
||||
tex2d->setWrap( osg::Texture::WRAP_S, osg::Texture::REPEAT );
|
||||
tex2d->setWrap( osg::Texture::WRAP_T, osg::Texture::REPEAT );
|
||||
osg::Texture2D* tex2d = new osg::Texture2D( image );
|
||||
tex2d->setWrap( osg::Texture::WRAP_S, osg::Texture::REPEAT );
|
||||
tex2d->setWrap( osg::Texture::WRAP_T, osg::Texture::REPEAT );
|
||||
stateset->setTextureAttributeAndModes( 1, tex2d, osg::StateAttribute::ON );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user