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

Reply via email to