[osg-users] More lights in scene!

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Mon Oct 24 13:19:45 PDT 2016


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 <robert.osfield at gmail.com>
wrote:

> On 24 October 2016 at 16:20, Nickolai Medvedev <raizel.dev at 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161024/86afcbc4/attachment-0002.htm>


More information about the osg-users mailing list