YoungStone, Jeong wrote on 2012-06-27: 
> Hi,
> 
> I'm studying OSG with Beginner's Guide Book.
> But I did not learn about OpenGL.
> 
<snip>
> In the code, GL_LIGHT0 and GL_LIGHT1 is being used.
> 
> I know there are from GL_LIGHT0 to GL_LIGHT7.
> 
> In my opinion GL_LIGHT0 features seems to be different from others.
> 
> Who can you explain GL_LIGHT0 is this?

I'm not sure what you're asking exactly but maybe this will help:

In OpenGL, there is nothing special about GL_LIGHT0.  However,
osgViewer::Viewer by default uses GL_LIGHT0 as a headlight. You can
change this behavior by setting the OSG_DEFAULT_LIGHTING environment
variable (see 'osgviewer --help-env') or by calling setLightingMode() on
your osgViewer::Viewer.

Hope this helps!
--
Bryan Thrall
Principal Software Engineer
FlightSafety International
[email protected]


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to