Rabbi Robinson wrote on Wednesday, July 01, 2009 9:50 AM: > Hi, > > Is there any way I can set the uniforms by vertex? I know uniforms are in > stateset. There are some attribute for vertex I need to set in shaders for > each vertex. How can I do it?
Uniforms are not set by vertex; you are wanting vertex attributes, which you can set in osg::Geometry using setVertexAttribArray or setVertexAttribData. -- Bryan Thrall FlightSafety International [email protected] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

