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
Hi Peter,
hmm, thats strange. Actually an update callback is always running over full
osgPPU graph too. So it should reach node's stateset and hence also update a
callback.
What happens if you specifiy just an update callback for an osgPPU unit. Unit's
are derived from osg::Node so you could
Hi,
I have an osg::Uniform::Callback which is working fine with osg::Programm, but
I don't get it working with osg::ShaderAttribute.
The Uniform Value used in Constructor is correctly passed to my Shader, but the
Values don't get update, as if the UpdateVisitor would not reach the Uniform.
3 matches
Mail list logo