Stephen,

You need some kind of shader composition. Personally, I prefer the
VirtualProgram approach taken in the osgvirtualprogram example. IIRC, Robert
did not consider this flexible enough to be a general-purpose shader comp
solution, so it's not in the core OSG. However it suited our needs quite
well so we adopted and extended it for use in the osgEarth project.

http://github.com/gwaldron/osgearth/blob/master/src/osgEarth/ShaderComposition

Glenn Waldron / Pelican Mapping / @glennwaldron


On Thu, Aug 4, 2011 at 10:19 AM, Stephen Haith <haith...@gdls.com> wrote:

> Very timely thread - I am looking at doing the same thing.
>
> How can you apply a shader effect to the entire scene, AND another effect
> to only a part of the tree?
>
> Thanks,
>
> Stephen
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=41851#41851
>
>
>
>
>
> _______________________________________________
> 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