[osg-users] Glsl structs and osg::Uniform. How?
Johny Canes
catchaller at gmail.com
Thu Jan 26 04:05:23 PST 2017
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
More information about the osg-users
mailing list