Hi John,

This works perfectly in OSG until I start to think about shadows... :-)

Wow, how does it work I wonder? If I were to make a shader, I would access light 0's position/direction with gl_LightSource[0].position. I thought the light's position was global to the whole scene, but in your case, light 0 will have multiple positions... Does that mean that the position is changed for each subgraph in which the light is placed? Do you put any children under the light source, or how do you determine for which subgraph a given light position applies?

I'm really surprised this works. And I agree that getting it to work for shadow techniques will be interesting.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to