Hi Daniel,

you are right, with BIND_OVERALL and just one element in the array, OSG should 
apply the single attribute to all vertices of the geometry. You can check this 
behavior in Geometry.cpp searching for BIND_OVERALL. Also there is the 
createTexturedQuadGeometry() function which does setup a geometry like you 
want, so check it out if you do it the same way. If it does not work, try to 
put a breakpoint into Geometry.cpp  and debug to see what happens. 

As you say, setting Uniforms requires a state change, while with an attribute 
the rendering is done at the GPU completely.

Thank you!

Cheers,
Tassilo

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





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

Reply via email to