Hi Sebastian, certainly would be a nice feature, although maybe shader synthetization should perhaps be done in a library of its own...
What do the others think? To this end, I have added an #include directive for my GLSL shaders which was trivially implemented "by hand" at the application level via string replacement. Best, Joachim > Thanks Stephane, > > it's a pitty that this can't be done directly. Would this be of use for > anyone but me? > I could imagine to introduce some mechnism to set such defines per shader. > Might involve pre-parsing the shader-source ... mmh > I just asking myself if this would somehow break other things. > > cheers > Sebastian > > Stephane Lamoliatte schrieb: -- Joachim E. Vollrath Visualisierungsinstitut der Universitaet Stuttgart (VISUS) web: http://www.vis.uni-stuttgart.de/~vollrajm/ mail: [EMAIL PROTECTED] phone: 49.711.7816.403 fax: 49.711.7816.213 german postal address: Dipl. Inf. Joachim E. Vollrath Visualisierungsinstitut der Universitaet Stuttgart (VISUS) Nobelstrasse 15 70569 Stuttgart GERMANY _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

