<div dir="ltr"><div>There is no need to provide the modelview and projection matrices yourself, and I'd recommend against doing so as you'd loose much of the OSG functionality relating to Camera's and accumulating modelview and projection matrices/<br></div><div><br></div><div>When using shaders the OSG can provide the projection and modelview matrices via osg_* built in uniforms that stand in place of the older OpenGL gl_* matrices (these are deprecated in OpenGL and don't exist for GLES2 and GL3 core profile).  You need to enable this mapping. by setting the osg::State's    UseModelViewAndProjectionUniforms to true. The osgsimplegl3 example illustrates how this is done.</div></div>