Hi,
I build a scene using osg which is composed of many objects and many lights, I 
want to traverse each object to find the nearest  light away from it and 
associate the light with GL_LIGHT0, so each object has its own GL_LIGHT0 
parameters. 
The problem is that the light is added to the scene by adding a 
osg::LightSource, and the LightSource node then is added to the scene graph, 
Must I add LightSources for each object to set its own light parameters? Is 
there any better method?

Thanks very much!
 



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

Reply via email to