The OSG design is that one should, where possible, keep state changes entirely seperate from drawing of primitives, this allows the OSG to do proper state sorting. If you want to disable state that do so by adding a StateSet local to the objects you want to disable them for, for GLSL Programs this would be done just adding an empty osg::Program to the local StateSet, for ARB fragment programs one can use the GL_FRAGMENT_PROGRAM_ARB mode to disable the program, GLSL doesn't have any mode support alas, a bit of an oversight w.r.t OpenGL consistency IMHO.
Robert.
On 9/18/06, Brad Colbert <[EMAIL PROTECTED]> wrote:
Is there a way to disable any active shader programs in the
drawImplementation callback for a drawable? For some reason it appears
that performance on nVidia slows down when a fragment shader is active
during the rendering of points.
Thanks,
Brad
---
Renaissance Sciences Corporation
O/M: 480 290-3997
F: 425 675-8044
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
