Hi everyone,
I want to change a scalefactor in a vertex program dynamically.
The scalefactor is changed by the user via an InputHandler.
float scaleFactor= 1.0;
ShaderInputHandler* input= new ShaderInputHandler(scaleFactor);
//add handler to view ..
geometryStateSet->addUniform(new Uniform("scaleFactor", scaleFactor));
I tried to add an update callback, but that didnt work..?!
Could you help me?
Cheers, Fabian.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org