I believe I found something...osg::Uniform::setArray(osg::FloatArray *array)? Hopefully this is correct.
I'm assuming there's something to specify the number of elements? Sorry for the hassle... -Shayne -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC Sent: Tuesday, April 07, 2009 11:56 AM To: [email protected] Subject: [osg-users] array of floats to a shader? All, I have a simple question that perhaps someone can answer. I need to send an array of floats to my vertex shader. My question is, is there any support in OSG to do this? Looking at the osg::Uniform class, I don't see any direct support for doing this. Is there anything in OSG that is equivalent to glUniform1fv() in OGL? Thanks, -Shayne
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

