[osg-users] Trouble with a simple shader program.

Alexander Wieser alexander.wieser at crystalbyte.de
Sun Apr 12 05:32:34 PDT 2015


Hi,

thank you for providing me with some insight.
I had already stumbled upon exactly this example:


> 
>   // for non GL3/GL4 and non GLES2 platforms we need enable the osg_ uniforms that the shaders will use,
>     // you don't need thse two lines on GL3/GL4 and GLES2 specific builds as these will be enable by default.
>     gc->getState()->setUseModelViewAndProjectionUniforms(true);
>     gc->getState()->setUseVertexAttributeAliasing(true); 
> 


I was under the assumption that my machine uses the GL4 core program.
After further inspection I realized that Ubuntu runs OpenGL 4.3 in Compatibility Mode for whatever reason.

After changing everything back to the gl_ prefix I can now see the red color.

Thank you!

Cheers,
Alexander[/quote]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63341#63341








More information about the osg-users mailing list