Hello,

I was wondering if the preprocessor language in GLSL is somehow useable 
for osg.
Imagine I had a shader with

..
#ifdef SIMPLE
vec4 Color = vec4(1.0);
#else if NOT_SO_SIMPLE
vec4 Color = unimaginableComplicatedColorFunction(...)
#endif

Can I pass those defines to osg::Shader? I didn't find anything.
So the only way to achive this is to modify the shader-code before 
loading, right?

cheers
Sebastian


..
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to