[osg-users] Fixed function pipeline -> GLSL shaders
mackrol at gmail.com
Tue Mar 3 23:02:05 PST 2009
I am glad that someone is digging this subject. I wrote simple visitor that
generates shaders from accumulated state sets. Custom state mask (int) is
extracted from stateset (LIGHT, FOG, DIFFUSE_MAP, NORMAL_MAP, etc). Based on
this mask shaders are generated and attached to drawables. Shaders
are cached so there is only a few of them.
Right now I am quite busy at work. I will refactor my code to strip out
customer specific stuff. I hope today late evening (Europe) I will send you
2009/3/3 Roland Smeenk <osgforum at tevs.eu>
> I know of shadergen. It was already mentioned earlier in this thread. It
> will come in handy when recreating the ffp functionality in shaders.
> I am interested in existing osg code that does shader generation based on
> the osg state.
> Read this topic online here:
> osg-users mailing list
> osg-users at lists.openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users