Hi Linus, On Wed, Nov 12, 2008 at 10:30 AM, Linus Hilding <[EMAIL PROTECTED]> wrote: > Ok, switching every stateset would be what I am looking to do. Composing the > texture in the shader would mean we loose the desired ability to use image > files.
StateSet remapping is what you'd probably best using. The two ways I'd go about this would be either : 1) Extend CullVisitor so that the CullVisitor::pushStateSet(const osg::StateSet* ss) method checks a local std::map<StateSet*, StateSet*> and does the remap. This map would be populated via a cull callback. Such a change might be best pushed into the core OSG as a new feature. 2) Post process the rendering back end's osgUtil::StateGraph replacing StateSet after the cull traversal has run. Option 2 is the least intrusive of the changes. Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org