HI Neil, osg::Vec4Array* colours = new osg::Vec4Array; colours->push_back(osg::Vec4(r,g,b,a)); geometry->setColorArray(colours); geoemtry->setColorBinding(osg::Geometry::OVERALL);
On 11/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi All, I hope a simple one for early Monday morning. What's the easiest way to set the colour of all the polygons in a geometry? Do I have to process each polygon/triangle or is there some nifty(?) way to do it with statset's etc. Could someone please advise after caffine fix ? Many thanks Neil. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
