Fixed the names of the ControlPoint parameters so they weren't capitals, to avoid

the clash with the parameter type itself.

Addd a PER_PRIMTIIVE_SET handling to the existing PER_PRIMTIIVE code, this code
is still flacky though and needs a rewrite as it doens't handle all attributes or
the full consequences of per primitive and per primitive set bindings.
This commit is contained in:
Robert Osfield
2002-10-10 14:58:44 +00:00
parent 6ba195efea
commit bfd614f907
3 changed files with 8 additions and 5 deletions

View File

@@ -305,10 +305,13 @@ void Tesselator::retesselatePolygons(osg::Geometry& geom)
}
// we don't properly handle per primitive and per primitive bindings yet
// will need to address this soon. Robert Oct 2002.
{
osg::Vec3Array* normals = NULL; // GWM Sep 2002 - add normals for extra facets
int iprim=0;
if (geom.getNormalBinding()==osg::Geometry::BIND_PER_PRIMITIVE)
if (geom.getNormalBinding()==osg::Geometry::BIND_PER_PRIMITIVE ||
geom.getNormalBinding()==osg::Geometry::BIND_PER_PRIMITIVE_SET)
{
normals = geom.getNormalArray(); // GWM Sep 2002
}