Hi,

well, this code is properly updating my Uniform: 
osg::Uniform * uniform = new osg::Uniform( "Vector" , osg::Vec4f( 0.0f , 0.0f , 
0.0f , 0.0f ) ) ;
uniform -> setUpdateCallback( new UniformCallback ) ;
stateSet -> addUniform( uniform ) ;

So the update call back does reach the Uniform.
My guess is, that you cannot attach the UniformUpdateCallback to an 
osgPPU::ShaderAttribute, as this one is derived from osg::Programm, but the 
UniformUpdateCallback is meant to be attached to an osg::Uniform.

Cheers,
ParticlePeter

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34677#34677





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

Reply via email to