Oi everyone,
The shader:
Code:
struct Thing {
vec3 color;
float distance;
}
uniform Thing things[ 2 ];
I've done a lot of googling for this problem but found no way to
programatically approach this...
So my question is, how would I set this 'array uniform' from my c++ code using
osg::Uniform?
Your answers are appreciated!
Cheers,
Johny
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70054#70054
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org