Hii Aurelien, I have checked the Renderer and it's picking up of the StatsHandler::Camera's StateSet OK, and is passing it on as I'd expect it. Still digging...
Robert. On 1 July 2013 13:18, Aurelien Albert <[email protected]> wrote: > Hi, > > Try the following : > > 1/ Create de shader program which output "red" : gl_fragColor = vec4(1.0, > 0.0, 0.0, 1.0) > > 2/ Add this shader to the StatsHandler's camera : > getCamera()->getOrCreateStateSet()->setAttribute(myProgram) > > 3/ The stats are still displayed correctly, not "red", just like the program > was not applied > > > Thank you! > > Cheers, > Aurelien > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=55032#55032 > > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
