Hi osg-users!

I have a shader attached to a subgraph. The shader uses a uniform which needs 
to be updated in every frame. The uniform is related to the modelviewmatrix, 
and should thus get a different value for every node in the subgraph. 

I have tried to use a osg::Uniform::Callback, but the callback is only called 
for the parent node in the subgraph. 
I think it would work if I declare a uniform for each node, and attach an 
updating callback to each uniform, but there must be a more clever way do to it?

Any help would be appreciated!

Åsa Engvall
osg-users mailing list

Reply via email to