<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 10 April 2018 at 16:55, Rowley, Marlin R <span dir="ltr"><<a href="mailto:marlin.r.rowley@lmco.com" target="_blank">marlin.r.rowley@lmco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-4908788474201850478WordSection1">
<p class="MsoNormal">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.</p></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>Robert. </div><div><br></div><div> </div></div></div></div>