Hi Brian, On Fri, Feb 20, 2009 at 4:12 PM, Brian R Hill <[email protected]> wrote: > I've used the "uber shader, #define, #ifdef" approach. The shader has all > the code, but none of the #defines. I store the specific mode/state > information in the osg node descriptions and use it to set the appropriate > uniforms and #defines for compiling the shader. It's messy.
Any chance of you providing an example that illustrates this approach. I have thought about doing such experiments myself, but as you've already done them it'd be good to save some time :-) Cheers, Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

