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

Dario Minieri paradox at cheapnet.it
Tue Feb 28 07:53:48 PST 2017


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








More information about the osg-users mailing list