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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to