Fixed warnings
This commit is contained in:
@@ -307,7 +307,6 @@ void daeReader::processProfileCOMMON(osg::StateSet *ss, domProfile_COMMON *pc )
|
||||
}
|
||||
}
|
||||
|
||||
xsNCName DiffuseTextureName = NULL;
|
||||
osg::ref_ptr< osg::Material > mat = new osg::Material();
|
||||
// <blinn>
|
||||
// elements:
|
||||
@@ -364,9 +363,6 @@ void daeReader::processProfileCOMMON(osg::StateSet *ss, domProfile_COMMON *pc )
|
||||
ss->setTextureAttribute( textureUnit, new osg::TexEnv(osg::TexEnv::MODULATE) );
|
||||
ss->setTextureAttribute( textureUnit, DiffuseStateAttribute );
|
||||
}
|
||||
|
||||
// Save the texture name for later
|
||||
DiffuseTextureName = b->getDiffuse()->getTexture()->getTexture();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -441,9 +437,6 @@ void daeReader::processProfileCOMMON(osg::StateSet *ss, domProfile_COMMON *pc )
|
||||
ss->setTextureAttribute( textureUnit, new osg::TexEnv(osg::TexEnv::MODULATE) );
|
||||
ss->setTextureAttribute( textureUnit, DiffuseStateAttribute );
|
||||
}
|
||||
|
||||
// Save the texture name for later
|
||||
DiffuseTextureName = p->getDiffuse()->getTexture()->getTexture();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -516,9 +509,6 @@ void daeReader::processProfileCOMMON(osg::StateSet *ss, domProfile_COMMON *pc )
|
||||
ss->setTextureAttribute( textureUnit, new osg::TexEnv(osg::TexEnv::MODULATE) );
|
||||
ss->setTextureAttribute( textureUnit, DiffuseStateAttribute );
|
||||
}
|
||||
|
||||
// Save the texture name for later
|
||||
DiffuseTextureName = l->getDiffuse()->getTexture()->getTexture();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -359,7 +359,7 @@ void daeWriter::apply( osg::LightSource &node )
|
||||
osg::Vec3 direction = pOsgLight->getDirection();
|
||||
osg::Vec4 ambientColor = pOsgLight->getAmbient();
|
||||
osg::Vec4 diffuseColor = pOsgLight->getDiffuse();
|
||||
osg::Vec4 specularColor = pOsgLight->getSpecular();
|
||||
//osg::Vec4 specularColor = pOsgLight->getSpecular();
|
||||
|
||||
if (position.w() == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user