[osg-users] Changing the polygon winding
Thrall, Bryan
bryan.thrall at flightsafety.com
Tue Dec 4 07:05:00 PST 2007
Kim C Bale wrote on Tuesday, December 04, 2007 8:01 AM:
> Is it possible to specify change the polygon winding for individual
> Primitive Sets?
>
>
>
> I've just noticed I've got the winding incorrect on some bands
> between terrain tiles and rather than modify the draw order I thought
> I'd just flip the winding to clockwise.
You can change it for an individual Drawable (by adding an
osg::FrontFace to the Drawable's StateSet), but if you have two
PrimitiveSets on the same Drawable that have different winding, then you
need to split them into separate Drawables.
--
Bryan Thrall
FlightSafety International
Bryan.Thrall at flightsafety.com
More information about the osg-users
mailing list