Hi, one of the best resources for generating shader code is ShaderGen (written by Josh Doss then at 3Dlabs). It uses a GUI to select FF state, then generates appropriate shaders to reproduce that state. It was exhaustively tested for consistent results, and source code is included.
It's in my 3Dlabs archive at http://mew.cx/glsl/ cheers -- mew -- Mike Weiblen -- Boulder Colorado USA -- http://mew.cx/ On Tue, Mar 3, 2009 at 3:52 AM, Roland Smeenk <[email protected]> wrote: > Hello Maciej, > > if I am right you have not only been thinking about dynamic shader > generation, but also got something working. Would you be willing to share > your code? > > I have some time at work to implement basic shader generation so it would be > nice if I could learn from and/or extend work done by others. > > -- > Roland > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=7835#7835 > > > > > > _______________________________________________ > 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

