hi CG

when you remove a shader, osg::Program need to be relinked.
this is done by osgUtil::GLObjectVisitor in osgViewer::Renderer::draw
method.
So this seem can be done at runtime.

Which OSG version did you use ?
Did you use osgViewer ?

David Callu


2008/6/12 CG <[EMAIL PROTECTED]>:

> Hi all,
>
> Are there any ways to remove the shader during runtime? I've tried
> the removeShader function but the effect of the shader is still applied to
> my models (e.g tank) i.e. the appearance of the models do not go back to the
> state before shader is applied.
>
> Regards,
> Cg
> ------------------------------
> Chat online and in real-time with friends and family! Windows Live
> Messenger <http://get.live.com/messenger/overview>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to