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 <[email protected]>: > 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

