Hey.

A while ago we added a few new FrontFace modes to deal with
multi-instanced mirrored geometry showing up in our data:

 - AUTO, which sets the front face to GL_CW when the MVM has negative
determinant (mirror transformation)., GL_CCW otherwise.
 - AUTO_FLIPPED, doing the inverse
 - FLIP, which inverts the previous setting in apply()

(The latter we don't actually use, I just added it for completeness -
could be useful if the mirroring is done by a uniform instead of the
MVM)

This obviously required some changes to RenderLeaf, State and FrontFace.

If this feature is considered useful I'll clean up the code and send a patch.

Felix
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to