Hello,

I need help with setting lights in OSG.

My scene graph look like this:

      group
      /     \
quad       camera (PRE_RENDER)
               |
              root
               |
       shadowedScene (with ShadowMap)
        /             \
model           pointLight

First, I pre-render the shadowedScene to a texture (using FBO) and
then attach this texture to the quad. When OSG traverses the graph, it
correctly goes through the pointlight code (in ShadowMap) BUT after it
goes through the directional light code as well.

Where does this directional light come from? How could I disable it?

Thank you for you help.

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

Reply via email to