You can use osg::VertexAttribDivisor (set to 1) to tell the shader to use one attribute index per instance.
Glenn Waldron On Thu, Dec 22, 2016 at 12:35 PM, Andrew Cunningham <[email protected]> wrote: > On thinking about this issue, I see the problem. I really only have 4 > vertices, so the value d in my vertex shader just is always pulled from > locations 0-3 in my array. What I really need to do is access an array of > offsets in my shader indexed by glInstanceID > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=69744#69744 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

