Hi,
Now I want to send a struct array to vertex shading code, I use OSG and GLSL.
for example
struct DATA
{
float a;
int b;
};
DATA * data =new DATA[10];
Then I want to use the parameter in vertex shading code, I am not sure
how to send it to vertex shading code. I have checked osg::Uniform, it seems
that Uniform is not qualified for the requirement.
So is there anyone who can give me an advice? Thank you very much.
Thank you!
Cheers,
Hao
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59863#59863
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org