PCJohn wrote on 2010-03-19: 
> 2. LightSource question: I was always wondering why there are two light
> classes - osg::Light and osg::LightSource - and not just one. Is the
> only purpose for having both osg::Light and osg::LightSource the ability
> of LightSource to specify ReferenceFrame? Apparently, osg::Light as
> Attribute can not have reference frame. Any other reasons, or am I
> missing something?

osg::Light is a StateAttribute and osg::LightSource is a Group, so Light 
represents the OpenGL state (like the light ID) for a light in the scene, and 
LightSource represents the location of that light (note that LightSource has a 
Light).

HTH,
--
Bryan Thrall
FlightSafety International
[email protected]
  


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

Reply via email to