Added check of translucency of an image via osg::Image::isImageTranslucent().

This commit is contained in:
Robert Osfield 2002-11-25 16:40:30 +00:00
parent 010e56c8cc
commit aa3d887e94

View File

@ -1155,13 +1155,8 @@ void ConvertFromFLT::setTexture ( FaceRecord *rec, SFace *pSFace, osg::StateSet
if (osgTexture)
{
osg::Image* osgImage = osgTexture->getImage();
switch (osgImage->getPixelFormat())
{
case GL_LUMINANCE_ALPHA:
case GL_RGBA:
bBlend = true;
break;
}
if (osgImage->isImageTranslucent()) bBlend = true;
}
#if 0 // Started to experiment with OpenFlight texture mapping modes