[osg-users] Inherit parts of shader program

Ravi Mathur ravidavi at utexas.edu
Sat Sep 3 18:14:54 PDT 2016


Thank you Robert! Can you speak to the performance of using multiple osg::Programs vs shader composition?

Another question: suppose I use a separate osg::Program for each osg::Drawable. Each Program would use the same Vertex osg::Shader object, but have its own Fragment osg::Shader object. This is the straightforward answer you mentioned. In this case, do you know if there's any performance benefit to sharing an osg::Shader object among multiple osg::Program objects? Or is it the same (performance-wise) as having separate Vertex & Fragment osg::Shader objects for each osg::Program?

Thanks!
Ravi

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68511#68511








More information about the osg-users mailing list