[osg-users] Merge Shader::Program from differents node kits.

Christian Buchner christian.buchner at gmail.com
Wed Mar 1 02:57:11 PST 2017


Pragmatic shader composition was introduced in OSG 3.4 only.   Awkward...

It seems that you will have to do a manual merging of the shaders and
uniform variables unless you are able to upgrade OpenSceneGraph.

Christian


2017-02-28 16:53 GMT+01:00 Dario Minieri <paradox at cheapnet.it>:

> Hi,
>
> I'm planning to using osgVegetation (https://github.com/leadcoder/
> osgVegetation) with osgOcean.
>
> Unfortunately, both use a lot of shaders and there are obviously problems
> in the underwater visualization because osgVegetation shader pipeline
> (which generates the vegetation billboard instances) overwrites the
> osgOcean underwater program. So the vegetation don't get the underwater
> effects (dof, fog, scattering, etc...).
>
> Normally, I proceed to integrate physically the shaders, merging 2 vertex
> and fragment shader into one program. In this case it's a terrible
> prospective because they are huge node kits (not only shaders, but a lot of
> osg layers above).
>
> So, can you suggest to me a way to procede? I know that similar problems
> come out time to time but right now I'm not able to figure out a way. I'm
> using OSG 3.2.3 and I can't use newer version for now.
>
> Thank you!
>
> Cheers,
> Dario
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70362#70362
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170301/3ee73b2b/attachment-0001.htm>


More information about the osg-users mailing list