On 10 April 2018 at 16:55, Rowley, Marlin R <marlin.r.row...@lmco.com> wrote:
> Nevermind. I figured out that I need to update the shader state variables > on every refresh. I thought that an initial binding was all that was > needed, but they have to be “Set” every frame. > It all depends what data you are needing to pass to the shader via uniforms. The OSG provides standard replacements for the likes of gl_ModelViewMatrix automatically as osg_ModelViewMatrix etc. if you enable it via osg::State. See the osgsimplegl3 example. Robert.
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org