[osg-users] how to set uniform is shaders by vertex

2009-07-01 Thread Rabbi Robinson
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?

Thank you!

Cheers,
Rabbi

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=14775#14775





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] how to set uniform is shaders by vertex

2009-07-01 Thread Thrall, Bryan
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
bryan.thr...@flightsafety.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org