On Thu, Sep 30, 2010 at 9:12 AM, Robert Osfield <[email protected]> wrote: > osg::State in svn/trunk and later 2.9.x series has support for > assigning a osg_ModelViewProjectMatrix, when you build for GL 3 or > GLES 2 it'll use this by default. You can switch this on via: > > state.setUseModelViewAndProjectionUniforms(true);
Forgot to mention the same support is provided for vertex attributes, this is done by aliasing GL2 standard vertex attributes to osg_ versions: state.setUseVertexAttributeAliasing(true); This is also set by default when using GL3/GLES2, where OSG_GL_FIXED_FUNCTION_AVAILABLE Cmake var is set to FALSE. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

