[osg-users] Tearing hair out over simple GLSL instancing

Andrew Cunningham andrewC at mac.com
Thu Dec 22 13:07:46 PST 2016


Thanks for the help

I got it working by adding this to the StateSet
	osg::VertexAttribDivisor *divisor = new osg::VertexAttribDivisor(1, 1);
	ss->setAttribute(divisor);

And changing my loop to add one offset per primitive to my vertexArray

And thanks again!! I would never have figured that one out!

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








More information about the osg-users mailing list