On 7/11/06, Yigang Wang <[EMAIL PROTECTED]> wrote:
Thanks, I it works.
I add the sentence as follows,
anotherLight->setStateSetModes(*rootStateSet,osg::StateAttribute::ON);
But I don't know why it should be added?
The LightSource nodes set the position and parameters of a light
source, but they don't swithc on the OpenGL light, with has to be done
with a glEnable, which the OSG wraps up with
setMode(GL_LIGHT0+i,osg::StateAttribute::ON), the above code you have
added does just this.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/