From 6f03f991b379884b62de62e07d72fa6f736b8939 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 11 Jun 2004 21:05:07 +0000 Subject: [PATCH] Changed the color binding to better reflect the settings in the OpenFlight file. --- src/osgPlugins/flt/flt2osg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/flt/flt2osg.cpp b/src/osgPlugins/flt/flt2osg.cpp index 934922069..3177982a5 100644 --- a/src/osgPlugins/flt/flt2osg.cpp +++ b/src/osgPlugins/flt/flt2osg.cpp @@ -1365,7 +1365,7 @@ void ConvertFromFLT::setLightingAndColorBinding ( const FaceRecord *rec, const S case FaceRecord::FACE_COLOR: // Use face color, not illuminated osgStateSet->setMode( GL_LIGHTING, osg::StateAttribute::OFF ); - dgset->setColorBinding( osg::Geometry::BIND_OVERALL /*BIND_PERPRIM*/ ); + dgset->setColorBinding( /*osg::Geometry::BIND_OVERALL*/ osg::Geometry::BIND_PER_PRIMITIVE ); break; case FaceRecord::VERTEX_COLOR: @@ -1377,7 +1377,7 @@ void ConvertFromFLT::setLightingAndColorBinding ( const FaceRecord *rec, const S case FaceRecord::FACE_COLOR_LIGHTING: // Use face color and vertex normal osgStateSet->setMode( GL_LIGHTING, osg::StateAttribute::ON ); - dgset->setColorBinding( osg::Geometry::BIND_OVERALL ); + dgset->setColorBinding( /*osg::Geometry::BIND_OVERALL*/ osg::Geometry::BIND_PER_PRIMITIVE); dgset->setNormalBinding(osg::Geometry::BIND_PER_VERTEX); break;