Quoting Mihai Radu <[EMAIL PROTECTED]>:
> If you are using shaders written by other people, parsing the source is
> the way to go.

You can ask the osg::Progam to give you a list of active uniforms.
osg::Program::getActiveUniforms(unsigned int context);

This gives you a map of names and a struct containing location, type, and size
of the Uniform. Enough to put up a nice UI ;-)

Cheers,
/uli
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to