Nickolai, here is good link I have started with, with code samples
http://www.ozone3d.net/tutorials/glsl_lighting_phong.php On Mon, Oct 24, 2016 at 5:37 PM, Robert Osfield <[email protected]> wrote: > On 24 October 2016 at 16:20, Nickolai Medvedev <[email protected]> > 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

