Hi,

I want to assign a generic vertex attribute for each primitive (triangle). I 
have written a visitor for this and used setVertexAttribArray() and 
setVertexAttribBinding() to add the id-attribute to the geometry 
(BIND_PER_PRIMITIVE). I have also added the attribute in the shader and 
introduced it to the shader program using addBindAttribLocation(),  but have 
not been able to get the desired attribute ID for each triangle. I could do 
this with a plain opengl code but cannot do it here. I am clearly missing 
something but I cannot see it clearly. any ideas? 


thanks,
deniz

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to