I did bit more testing combining setUseModelViewAndProjectionUniforms() state changes with including / excluding the uniform declarations.
It didn't really matter if I called setUseModelViewAndProjectionUniforms() with either true or false. In either case, the same errors were generated. The only thing that fixed the error was removing the osg_ModelViewProjectionMatrix declaration from the code. Regardless of the setUse...() state flag, no error was generated w.r.t. osg_ModelViewProjectionMatrix if I removed the declaration from the GLSL code, even if I still used the uniform in the shader. The same is true with the osg_Vertex error - only by removing the declaration could I eliminate the error. In fact, the shader compiled without *any* errors after removing both declarations. But, of course, nothing appeared onscreen. The only problem that I couldn't deal with separately was the "attribute" warning, especially since I did not use the "attribute" keyword in my code. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46700#46700 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

