Hi All, I'm starting to develop shader, texture, uniform, etc. code for our app and I have what's probably a very simple question. I understand these shader-related objects live in the Stateset, and in most examples I see the stateset being set on osg::Geometry within osg:Geodes. If I have an externally loaded model with lots of Geometry and Geode objects, and they all will use the same shader and data, can I put the stateset containing the "stuff" in the "root" Group node, or should I replicate it myself to all the individual nodes (e.g., using update callbacks). I would think that if I have a stateset on the "Group" that acts as the root node, then all the child objects will get their shader stuff ok, right? Even if there's only one stateset object created, do I still have to set it for the geometry nodes, or will they inherit from the parent path?
Thanks, bob
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

