On 24 October 2016 at 16:20, Nickolai Medvedev <raizel....@yandex.ru> wrote:
> I need colour of the surface geometry of objects in the scene.

gl_Color with GL2, or osg_Color if you have enabled the vertex to
vertex attrib aliasing.  This aliasing is on by default for GLcore or
GLES2 profiles.

Go look at the shaders in the OpenSceneGraph-Data/shader examples.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to